Theme: ← Übersicht Tokens

Call-to-Action

Aufruf-Banner mit Titel, Text und Button-Slot — brand- oder neutral-getönt, mobil kompakt

Blocks v1.1.2 Konversion Website section.cta

Beispiele

Brand-Banner

Bereit für den Umstieg?

14 Tage kostenlos testen — keine Kreditkarte nötig.

Neutral

Newsletter abonnieren

Produkt-Updates, maximal einmal im Monat.

Eigenschaften

PropTypDefaultBuilder-Label
title *string—Titel
textstring""Text
tonestring: brand | neutral"brand"Ton
spacingstring: none | sm | md | lg | xl"md"Eigenabstand
paddingstring: standard | none | sm | md | lg | xl"standard"Innenabstand (standard = Baustein-Wert, schlaegt Eigenabstand)
marginstring: standard | none | sm | md | lg | xl"standard"Aussenabstand
borderstring: standard | none | hairline | strong"standard"Rahmen
radiusstring: standard | none | control | surface | pill"standard"Ecken-Rundung
textColorstring""Textfarbe (Token; leer = Standard)
backgroundColorstring""Hintergrundfarbe (Token; leer = Standard)
shadowstring: standard | none | sm | md | lg"standard"Schatten
widthstring: standard | container | full"standard"Breite (full = Band aus dem Container, container = im Container)
heightstring: standard | half | full"standard"Hoehe (full = Bildschirmhoehe, Inhalt zentriert)
backgroundImagestring""Hintergrundbild (https-URL oder /pfad; leer = keins)
backgroundDimstring: standard | light | medium | strong"standard"Bild abdunkeln (Lesbarkeit; standard = aus)
backgroundFixedbooleanfalseBild steht fest beim Scrollen (Parallax)
alignSelfstring: standard | start | center | end"standard"Ausrichtung im Elternteil
anchorstring""Anker-ID (Sprungziel, z. B. fuer Nav-Links)

* Pflicht-Prop

Events & Slots

Slot actions: akzeptiert ui.button, layout.cluster

Stellschrauben (Komponenten-Tokens)

Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.

TokenDefault
--cta-backgroundvar(--color-action-primary)
--cta-titlevar(--color-action-on-primary)
--cta-textvar(--color-action-on-primary)

Genutzte Design-Tokens

color.action.on-primarycolor.action.primarycolor.surface.sunkencolor.text.defaultcolor.text.mutedcontainer.mdfont.family.defaultleading.baseleading.tightopacity.mutedradius.surfacesize.12size.4size.6size.8text.mdtext.xlweight.bold

LLM-Notizen


# section.cta

Aufruf-Banner mit Titel, Text und Button-Slot — brand- oder neutral-getönt, mobil kompakt.

## Wann nutzen
- Als Handlungsaufruf-Sektion (z. B. „Jetzt registrieren") mit eigenen Buttons.
- Nicht für Karten-Reihen (`section.card-row`).

## Wichtige Props
- `title` * = Banner-Titel (max 200)
- `text` = Begleittext (max 500)
- `tone` = `brand` | `neutral` (Default `brand`)
- `spacing` = Eigenabstand oben/unten: `none` | `sm` | `md` | `lg` | `xl` (Default `md`)

## Slots
- `actions` * = Buttons/Cluster (`ui.button`, `layout.cluster`, mehrfach, max 3)

## Beispiel-Node
{ "definition": "section.cta", "props": { "title": "Bereit loszulegen?", "text": "Starte in wenigen Minuten.", "tone": "brand", "spacing": "lg" }, "slots": { "actions": [] } }

## Hinweise
- Section-Gerüst — die Aktionen kommen über den `actions`-Slot, nicht als Prop.