RadioGroup
Exclusive selection from labelled options.
Use RadioGroup when readers must choose exactly one visible option from a small set.
Interactive example
Loading interactive example
API
| Member | Type | Kind | Required | Default |
|---|---|---|---|---|
disabled | boolean | prop | No | false |
label | string | prop | No | undefined |
name | string | prop | No | undefined |
onValueChange | (value: T) => void | callback | No | undefined |
options | readonly T[] | readonly RadioOption<T>[] | prop | Yes | |
orientation | "vertical" | "horizontal" | prop | No | 'vertical' |
value | T | binding | No | undefined as T | undefined |
Examples
Source
Loading source