Radio Group
A set of mutually exclusive options where only one can be selected at a time.
Radio Group
Installation
pnpm dlx stera-ui@latest add radio-group
Composition
Use the following composition to build a RadioGroup:
RadioGroup
├── RadioGroupItem
└── RadioGroupItemExamples
With Descriptions
Standard spacing for most use cases.
More space between elements.
Minimal spacing for dense layouts.
Radio with Description
Choice Card
Wrap an entire Field in FieldLabel to render each option as a clickable card. The selected card highlights automatically via FieldLabel's built-in checked-state styling.
Radio Choice Card
In a Fieldset
Use FieldSet and FieldLegend to group radio items with an accessible legend.
Radio Fieldset
Disabled
Radio Disabled
API Reference
Built on Base UI's Radio Group and Radio primitives — see the full API reference there.
RadioGroup
Built on Base UI's RadioGroup primitive.
| Prop | Type | Default |
|---|---|---|
value | string | — |
defaultValue | string | — |
onValueChange | (value: string) => void | — |
disabled | boolean | false |
name | string | — |
orientation | "horizontal" | "vertical" | "vertical" |
RadioGroupItem
| Prop | Type | Default |
|---|---|---|
value | string | — |
disabled | boolean | false |