

Every state


default


hover


focus


selected


error


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "yes-no" | Id prefix; each option is `${id}-${value}`. |
| name | string | "yes-no" | Form field name of the radios. |
| legend | string | "Do you need step-free access?" | The question. |
| description | string | – | Help line under the question. |
| options | [ChoiceCardYesNoOption, ChoiceCardYesNoOption] | – | The two answers: value, title, detail, disabled. |
| showIcons | boolean | true | Draws a tick and a cross on the cards. |
| defaultValue | string | – | The answer chosen at the start. |
| required | boolean | – | Requires an answer before the form submits. |
| disabled | boolean | – | Disables both cards. |
| error | string | – | Error message; marks the group invalid. |
| className | string | – | Extra classes on the fieldset. |


