Trennlinie
Horizontale Trennlinie, optional mit zentriertem Beschriftungstext
Beispiele
Standard
Mit Beschriftung
Rechnungsadresse
Großer Abstand
Klein mit Text
oder
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| label | string | "" | Beschriftung (optional) |
| spacing | string: none | sm | md | lg | xl | "md" | Abstand |
| orientation | string: horizontal | vertical | "horizontal" | Ausrichtung |
| 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
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 |
|---|---|
--divider-color | var(--color-border-default) |
--divider-spacing | var(--size-4) |
Genutzte Design-Tokens
border.hairlinecolor.border.defaultcolor.text.mutedfont.family.defaultsize.12size.2size.3size.4size.5size.8text.xstracking.wideweight.medium
LLM-Notizen
ui.divider
Horizontale (oder vertikale) Trennlinie, optional mit zentriertem Beschriftungstext.
Wann nutzen
- Zum optischen Trennen von Abschnitten oder Listengruppen, optional mit Beschriftung („oder").
- Für einen Abstand ohne sichtbare Linie stattdessen Layout-Abstände nutzen.
Wichtige Props
label= zentrierter Beschriftungstext (leer = reine Linie)spacing=none | sm | md | lg | xl(Default „md")orientation=horizontal | vertical(Default „horizontal")
Beispiel-Node
{ "definition": "ui.divider", "props": { "label": "oder", "spacing": "lg" } }
Hinweise
- Ohne
labelwird eine durchgehende Linie gerendert, mitlabelzentrierter Text zwischen zwei Linien. - Linienfarbe und Abstände kommen aus den Tokens — nie rohe Farben/px setzen.