

Every state


default


hover


focus


selected


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "colour" | Id prefix; each option is `${id}-${value}`. |
| name | string | "colour" | Form field name. |
| legend | string | "Colour" | The group's visible label. |
| options | ChoiceCardSwatchOption[] | – | Colours: value, name, color (any CSS colour), soldOut. |
| defaultValue | string | "sage" | The colour chosen at the start. |
| onValueChange | (value: string) => void | – | Called with the chosen colour. |
| 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-11 is in UI ProGet UI Pro, €199


