RadioGroup
No consumersChoose exactly one option from a set that is worth showing in full.
One choice from a set small enough to show in full — three or four options. Beyond that, a Select costs less vertical space and reads more easily.
Default
The group owns the value; each item declares the value it selects. Items take disabled individually.
Props
RadioGroup
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | null | — | Required. The selected value, or null for none. |
onValueChange | (value: string) => void | — | Called with the chosen item's value. |
RadioGroupItem
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Required. The value this item selects. |
disabled | boolean | — | Renders the item unselectable. |