Radio Group
Lets a user select exactly one option from a visible set.
@rivetui/radio-groupPreview
Explore each composition interactively, then open its code in the same context.
With descriptions
Explain consequences inside each option when labels alone are not sufficient.
Compact grid
Short, comparable labels can share a responsive row.
Disabled option
Disable individual choices without hiding why they are unavailable.
Registry
Installation
Add the component source and its declared dependencies with the shadcn CLI.
Install component
bunx --bun shadcn@latest add @rivetui/radio-groupPublic interface
API reference
Component-specific props are listed here. Native element and Base UI props continue to pass through.
| Prop | Type | Default |
|---|---|---|
value | unknown | — |
defaultValue | unknown | — |
onValueChange | (value: unknown, details) => void | — |
disabled | boolean | false |