

Every state


default


focus


selected


error


disabled


narrow
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "rating" | Id prefix; each card is `${id}-${n}`. |
| name | string | "rating" | Form field name; posts the number 1 to 5. |
| legend | string | "How was your stay?" | The survey question. |
| description | string | – | Help line under the question. |
| labels | string[] | ["Very poor", "Poor", "Fair", "Good", "Excellent"] | One word per step, lowest first. |
| defaultValue | number | – | The step chosen at the start (1 to 5). |
| required | boolean | – | Requires an answer 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-08 is in UI ProGet UI Pro, €199


