RadioGroup.
A labelled, keyboard-native group of radio options.
The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.
Props & API reference
Parameters available in the shared component, including value types, requirements and accepted options.
| Parameter | Type | Required | Default | Possible values | Description |
|---|---|---|---|---|---|
name | string | Yes | — | — | Shared native name attribute for the radio set. |
options | Array<{value: string; label: string; disabled?: boolean}> | Yes | — | — | Radio choices and their labels. |
value | string | Yes | — | — | Controlled selection. |
onValueChange | (value: string) => void | No | — | — | Receives the chosen value. |
label | string | Yes | — | — | Visible group legend. |
className | string | No | — | — | Additional CSS class on the outer component element. |