Component
A composable group of radio buttons for single-selection. Manages shared state across all items.
View component changelogpreview
Import all parts of the component and piece them together
The root RadioGroup component.
| Prop | Type | Default |
|---|---|---|
name | string | -- |
value | string | -- |
defaultValue | string | -- |
disabled | boolean | false |
loop | boolean | true |
onValueChange | function | -- |
| Shortcut | Description |
|---|---|
Tab | Moves focus into or out of the radio group. |
ArrowRight | Moves focus to the next enabled radio item and selects it. |
ArrowDown | Moves focus to the next enabled radio item and selects it. |
ArrowLeft | Moves focus to the previous enabled radio item and selects it. |
ArrowUp | Moves focus to the previous enabled radio item and selects it. |
Space | Selects the focused radio item. |
| Reference | What Rad UI follows |
|---|---|
Uses grouped radio semantics for a single required or optional selection among related items. |