CTA-Button
Großer Call-to-Action mit gemeinsamer Button-Kapsel-Rundung — komponiert auf ui.button
Nutzt: ui.button
Beispiele
Standard
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| label * | string | — | label |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert) |
| 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 | full | "standard" | Breite |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | Anker-ID (Sprungziel, z. B. fuer Nav-Links) |
* Pflicht-Prop
Events & Slots
Events:
⚡ activate — im Surface per on: {<event>: {action, params}} verdrahtbar.
LLM-Notizen
# component.cta-button
Grosser Call-to-Action-Button, im Component Builder auf `ui.button` komponiert.
## Wann nutzen
- Für eine herausgehobene Primär-Aktion (Hero/Landing).
- Für gewöhnliche oder mehrere Buttons direkt `ui.button` verwenden.
## Wichtige Props
- `label`* = Button-Beschriftung
## Beispiel-Node
{ "definition": "component.cta-button", "props": { "label": "Jetzt starten" } }
## Hinweise
- Emittiert `activate` beim Klick.
- Baut auf `ui.button` auf; Stil kommt aus dem Button-Baustein/Token.