

Every state


default


focus


some-on


all-on


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "add-ons" | Id prefix; each switch is `${id}-${value}`. |
| name | string | "extras" | Form field name; each switch that is on posts its value. |
| legend | string | "Optional extras" | The group's visible label. |
| description | string | – | Help line under the legend. |
| options | ChoiceCardAddOnsOption[] | – | Extras: value, name, detail, price, disabled. |
| defaultValue | string[] | – | Values switched on at the start. |
| currency | string | "EUR" | ISO currency code for the prices. |
| locale | string | "en-GB" | Locale for the price format. |
| period | string | "a month" | What the price is per. |
| disabled | boolean | – | Disables every switch. |
| onValueChange | (values: string[], total: number) => void | – | Called with the switched-on values and their total. |
| className | string | – | Extra classes on the fieldset. |
More choice cards
All 12choice-card-01 is in UI ProGet UI Pro, €199

