Radio Group
Displays a radio group built on the Base UI Radio primitive, for choosing exactly one option from a short list.
Installation
Bash
Usage
Examples
Cards
Wrap each item in a styled Label — the
has-data-checked: variant styles the selected card.
Disabled
Invalid
Select a billing period to continue.
API reference
RadioGroup
Extends the Base UI Radio Group primitive — all its props apply.
| Prop | Type | Default |
|---|---|---|
value / defaultValue | string | — |
onValueChange | (value: string) => void | — |
name | string — form submission | — |
disabled | boolean — whole group | false |
RadioGroupItem
Extends the Base UI Radio Root — the dot indicator is built in. Pair with Label for the click-target text.
| Prop | Type | Default |
|---|---|---|
value | string (required) | — |
disabled | boolean | false |