Invisible Docs
GalerieTokens

Auswahl-Karten (Choicebox) — component.choice-box

Radio- oder Mehrfachauswahl als Karten mit Titel, Beschreibung, optionalem Icon und Badge — Tastatur-fähig, emittiert selection

Componentv1.1.0Formulareweb.documentweb.applicationdesktop.shellbuilder.preview

Beispiele

Einfachauswahl (Radio-Karten)

Versandart

Mehrfachauswahl mit deaktivierter Karte

Zusatzleistungen

Eigenschaften

PropTypDefault
labelstring""
multiplebooleanfalse
columnsnumber2
options *array—
spacingstring: default | none | sm | md | lg | xl"default"

Events & Slots

Events: selection

Stellschrauben (Komponenten-Tokens)

TokenDefault
--choice-box-action-primaryvar(--color-action-primary)
--choice-box-border-strongvar(--color-border-strong)
--choice-box-focus-ring-colorvar(--focus-ring-color)
--choice-box-focus-ring-offsetvar(--focus-ring-offset)
--choice-box-focus-ring-widthvar(--focus-ring-width)
--choice-box-radius-fullvar(--radius-full)
--choice-box-radius-surfacevar(--radius-surface)
--choice-box-surface-defaultvar(--color-surface-default)
--choice-box-text-defaultvar(--color-text-default)
--choice-box-text-mutedvar(--color-text-muted)

Genutzte Design-Tokens

border.hairline color.action.primary color.border.strong color.surface.default color.text.default color.text.muted duration.fast easing.standard focus.ring-color focus.ring-offset focus.ring-width font.family.default radius.full radius.surface size.12 size.4 size.6 size.8 text.md text.sm weight.medium weight.semibold