Theme: ← Übersicht Tokens

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.

Components v1.2.3 Inhalt WebsiteAppDesktop component.list-group

Nutzt: ui.badge ui.icon

Beispiele

Aufgabenliste mit Badges
Flush (rahmenlos, z. B. in einer Card)
  • Eintrag A
  • Eintrag B

Eigenschaften

PropTypDefaultBuilder-Label
items *array—Einträge
variantstring: standard | navigation"standard"Darstellung
chevronbooleantruePfeil rechts bei Links (navigation)
iconStylestring: tile | plain"tile"Icon-Darstellung
labelstring""Listenname für Screenreader
flushbooleanfalseOhne Außenrahmen (flush)
paddingstring: standard | none | sm | md | lg | xl"standard"Innenabstand (standard = Baustein-Wert)
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 | full"standard"Breite
alignSelfstring: standard | start | center | end"standard"Ausrichtung im Elternteil
anchorstring""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.

TokenDefault
--list-group-bordervar(--color-border-subtle)
--list-group-activevar(--color-action-primary)
--list-group-navigation-radiusvar(--shape-control, var(--radius-control))
--list-group-navigation-iconvar(--color-text-muted)
--list-group-navigation-icon-surfacevar(--color-surface-sunken)
--list-group-navigation-hovervar(--color-surface-hover, var(--color-surface-sunken))
--list-group-navigation-selectedvar(--color-surface-selected, var(--color-surface-sunken))
--list-group-navigation-selected-textvar(--color-text-accent, var(--color-action-primary))
--list-group-navigation-weightvar(--weight-regular)
--list-group-navigation-weight-selectedvar(--weight-medium)

Genutzte Design-Tokens

border.emphasisborder.hairlinecolor.action.primarycolor.border.focuscolor.border.subtlecolor.surface.defaultcolor.surface.hovercolor.surface.selectedcolor.surface.sunkencolor.text.accentcolor.text.defaultcolor.text.mutedcontrol.heightduration.fasteasing.standardfocus.ring-colorfocus.ring-widthfont.family.defaultopacity.disabledradius.controlradius.surfacesize.05size.1size.2size.3size.4size.5text.mdtext.smweight.mediumweight.regularweight.semibold

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 Kennzahlen component.metric-card.

Wichtige Props

  • items * = Array aus { label, description?, href?, badge?, badgeTone?, active?, disabled? }; badgeTone = neutral | info | success | warning | danger
  • flush = 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 href emittieren beim Klick navigate.