Call-to-Action
Aufruf-Banner mit Titel, Text und Button-Slot — brand- oder neutral-getönt, mobil kompakt
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
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| title * | string | — | Titel |
| text | string | "" | Text |
| tone | string: brand | neutral | "brand" | Ton |
| spacing | string: none | sm | md | lg | xl | "md" | Eigenabstand |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert, schlaegt Eigenabstand) |
| margin | string: standard | none | sm | md | lg | xl | "standard" | Aussenabstand |
| border | string: standard | none | hairline | strong | "standard" | Rahmen |
| radius | string: standard | none | control | surface | pill | "standard" | Ecken-Rundung |
| textColor | string | "" | Textfarbe (Token; leer = Standard) |
| backgroundColor | string | "" | Hintergrundfarbe (Token; leer = Standard) |
| shadow | string: standard | none | sm | md | lg | "standard" | Schatten |
| width | string: standard | container | full | "standard" | Breite (full = Band aus dem Container, container = im Container) |
| height | string: standard | half | full | "standard" | Hoehe (full = Bildschirmhoehe, Inhalt zentriert) |
| backgroundImage | string | "" | Hintergrundbild (https-URL oder /pfad; leer = keins) |
| backgroundDim | string: standard | light | medium | strong | "standard" | Bild abdunkeln (Lesbarkeit; standard = aus) |
| backgroundFixed | boolean | false | Bild steht fest beim Scrollen (Parallax) |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | 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.
| Token | Default |
|---|---|
--cta-background | var(--color-action-primary) |
--cta-title | var(--color-action-on-primary) |
--cta-text | var(--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.