A single radio button input. Use RadioGroup for grouped single-selection, or Radio standalone for custom layouts.
import Radio from "@radui/ui/Radio"- A single radio input for custom layouts outside RadioGroup
- Checked state through aria-checked; Space selects
- Takes the group's name and value for forms when used inside one
Import all parts of the component and piece them together.
A single radio button input.
| Prop | Type | Default |
|---|---|---|
name | string | "" |
value | string | "" |
id | string | "" |
checked | boolean | false |
disabled | boolean | false |
size | string | "" |
color | string | "" |
variant | string | "" |
onChange | function | — |
| Shortcut | Description |
|---|---|
| Tab | Moves focus to the radio input. |
| Space | Checks the radio input when it is focused. |
| Reference | What Rad UI follows |
|---|---|
| Radio group pattern | Uses native radio semantics for the individual option. Use RadioGroup when documenting grouped roving-focus behavior. |