

Every state


default


focus


preset-chosen


own-amount


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "amount" | Id prefix; each preset is `${id}-${amount}`. |
| name | string | "amount" | Form field name; the chosen amount posts as one plain number. |
| legend | string | "Choose an amount" | The group's visible label. |
| description | string | – | Help line under the legend. |
| presets | number[] | [10, 25, 50, 100] | Preset amounts in whole currency units. |
| popular | number | 25 | The preset marked "Most chosen". |
| defaultPreset | number | 25 | The preset chosen at the start. |
| defaultOther | number | – | An own amount shown at the start; chooses the other-amount card. |
| min | number | 5 | Smallest own amount. |
| max | number | 1000 | Largest own amount. |
| currency | string | "EUR" | ISO currency code. |
| locale | string | "en-GB" | Locale for the amount format. |
| disabled | boolean | – | Disables every card and the input. |
| error | string | – | An outside error message, e.g. from the server. |
| onValueChange | (amount: number | null) => void | – | Called with the chosen amount, or null while the own amount is not valid. |
| className | string | – | Extra classes on the fieldset. |
More choice cards
All 12choice-card-02 is in UI ProGet UI Pro, €199

