Listengruppe
Gerahmte Eintragsliste (Bootstrap list-group): Einträge mit Titel, Beschreibung, Badge und optionalem Link — aktiv/deaktiviert je Eintrag. v1.2: navigation mit abschaltbarem Pfeil (chevron), iconStyle plain ohne Kachel und Aktivzustand auf der selected-Flaeche statt Balken.
Beispiele
- Angebot Kunde ACMEFällig heute 16:00dringend
- Rechnungslauf prüfen14 offene Belege14
- Altsystem-Exportwartet auf Freigabe
- Eintrag A
- Eintrag B
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| items * | array | — | Einträge |
| variant | string: standard | navigation | "standard" | Darstellung |
| chevron | boolean | true | Pfeil rechts bei Links (navigation) |
| iconStyle | string: tile | plain | "tile" | Icon-Darstellung |
| label | string | "" | Listenname für Screenreader |
| flush | boolean | false | Ohne Außenrahmen (flush) |
| 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:
⚡ navigate — im Surface per on: {<event>: {action, params}} verdrahtbar.
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 |
|---|---|
--list-group-border | var(--color-border-subtle) |
--list-group-active | var(--color-action-primary) |
--list-group-navigation-radius | var(--shape-control, var(--radius-control)) |
--list-group-navigation-icon | var(--color-text-muted) |
--list-group-navigation-icon-surface | var(--color-surface-sunken) |
--list-group-navigation-hover | var(--color-surface-hover, var(--color-surface-sunken)) |
--list-group-navigation-selected | var(--color-surface-selected, var(--color-surface-sunken)) |
--list-group-navigation-selected-text | var(--color-text-accent, var(--color-action-primary)) |
--list-group-navigation-weight | var(--weight-regular) |
--list-group-navigation-weight-selected | var(--weight-medium) |
Genutzte Design-Tokens
LLM-Notizen
component.list-group
Gerahmte Eintragsliste mit Titel, Beschreibung, Badge und optionalem Link je Eintrag.
Wann nutzen
- Kompakte, gerahmte Aufzählung mit optionaler Navigation pro Zeile.
- Für filterbare Datensätze mit Suchleiste
component.filter-bar; für Kennzahlencomponent.metric-card.
Wichtige Props
items* = Array aus{ label, description?, href?, badge?, badgeTone?, active?, disabled? };badgeTone=neutral|info|success|warning|dangerflush= ohne Außenrahmen darstellen (true/false)
Beispiel-Node
{ "definition": "component.list-group", "props": { "items": [ { "label": "Rechnung 2043", "description": "fällig morgen", "badge": "offen", "badgeTone": "warning" } ] } }
Hinweise
- Einträge mit
hrefemittieren beim Klicknavigate.