Skip to content

Radio Group

The first choice available.
The second choice available.
The third choice available.
Selected: option-one
Terminal window
npx skeci-ui add radio-group
import { 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>

Horizontal

Disabled Group

PropTypeDefaultDescription
valuestringThe controlled value of the group.
defaultValuestring''The initial value when uncontrolled.
onValueChange(value: string) => voidCallback fired when the value changes.
disabledbooleanfalseWhether the entire group is non-interactive.
orientation'horizontal' | 'vertical''vertical'The layout direction of the items.
PropTypeDefaultDescription
valuestring (required)The value associated with this item.
labelstringThe label text.
descriptionstringHelper text below the label.
disabledbooleanfalseWhether this specific item is non-interactive.