Auswahl-Karten (Choicebox) — component.choice-box
Radio- oder Mehrfachauswahl als Karten mit Titel, Beschreibung, optionalem Icon und Badge — Tastatur-fähig, emittiert selection 1.2.0 (01.11.2026, opt-in, iamgreat Kursspieler): marker key|none (options[].key als Marker-Text), size lg (grosse Kacheln fuer Vorlese-Kinder), disabled (ganze Gruppe), op
Beispiele
Einfachauswahl (Radio-Karten)
Mehrfachauswahl mit deaktivierter Karte
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
label | string | "" |
multiple | boolean | false |
columns | number | 2 |
options * | array | — |
spacing | string: default | none | sm | md | lg | xl | "default" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
marker | string: circle | key | none | "circle" |
size | string: md | lg | "md" |
disabled | boolean | false |
labelHidden | boolean | false |
layout | string: grid | bar | "grid" |
hotkeys | boolean | false |
controlled | boolean | false |
variant | string: default | card | "default" |
audioLabel | string | "Anhören" |
animate | boolean | false |
Events & Slots
Events: selection, audio
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--choice-box-action-primary | var(--color-action-primary) |
--choice-box-border-strong | var(--color-border-strong) |
--choice-box-focus-ring-color | var(--focus-ring-color) |
--choice-box-focus-ring-offset | var(--focus-ring-offset) |
--choice-box-focus-ring-width | var(--focus-ring-width) |
--choice-box-radius-full | var(--radius-full) |
--choice-box-radius-surface | var(--radius-surface) |
--choice-box-surface-default | var(--color-surface-default) |
--choice-box-text-default | var(--color-text-default) |
--choice-box-text-muted | var(--color-text-muted) |
Genutzte Design-Tokens
border.hairline color.action.primary color.border.strong color.status.danger color.status.success color.surface.default color.surface.sunken color.text.default color.text.muted control.height duration.base duration.fast duration.slow easing.standard focus.ring-color focus.ring-offset focus.ring-width font.family.default radius.control radius.full radius.surface size.05 size.1 size.10 size.12 size.2 size.3 size.4 size.6 size.8 text.2xl text.md text.sm weight.medium weight.semibold