Radio Group
Preview
Section titled “Preview”The first choice available.
The second choice available.
The third choice available.
Selected: option-one
Installation
Section titled “Installation”npx skeci-ui add radio-groupimport { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';
<RadioGroup defaultValue="option-one"> <RadioGroupItem value="option-one" label="Option One" /> <RadioGroupItem value="option-two" label="Option Two" /></RadioGroup>Variants
Section titled “Variants”Horizontal
Disabled Group
RadioGroup
Section titled “RadioGroup”| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | The controlled value of the group. |
defaultValue | string | '' | The initial value when uncontrolled. |
onValueChange | (value: string) => void | — | Callback fired when the value changes. |
disabled | boolean | false | Whether the entire group is non-interactive. |
orientation | 'horizontal' | 'vertical' | 'vertical' | The layout direction of the items. |
RadioGroupItem
Section titled “RadioGroupItem”| Prop | Type | Default | Description |
|---|---|---|---|
value | string (required) | — | The value associated with this item. |
label | string | — | The label text. |
description | string | — | Helper text below the label. |
disabled | boolean | false | Whether this specific item is non-interactive. |