

Every state


default


hover


focus


selected


low-stock


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "size" | Id prefix; each option is `${id}-${value}`. |
| name | string | "size" | Form field name. |
| legend | string | "Size" | The group's visible label. |
| options | ChoiceCardSizeOption[] | – | Sizes: value, label, name, stock (in, low, out), left. |
| defaultValue | string | – | The size chosen at the start. |
| guide | { label: string; href: string } | – | A link beside the legend, e.g. a size guide. |
| onValueChange | (value: string) => void | – | Called with the chosen size. |
| required | boolean | – | Requires a choice before the form submits. |
| disabled | boolean | – | Disables the whole group. |
| error | string | – | Error message; marks the group invalid. |
| className | string | – | Extra classes on the fieldset. |
More choice cards
All 12choice-card-10 is in UI ProGet UI Pro, €199


