Radio group
v0.15.0Pick exactly one of a few visible options.
Radio group default
Install
npx shadcn add @syncrobotic/radio-group Also installs: radix-ui, @syncrobotic/cn
Overview
A set of options where exactly one is chosen, all visible at once.
When to use
- Two to five options the user should compare, like a patrol mode.
Use something else
- A long list: Select.
- Switching views in a toolbar: Segmented control.
- Yes / no: Switch or Checkbox.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Radio group cards
Radio group horizontal
Radio group disabled option
Usage rules
- For two to five options that all fit on screen. Longer lists use Select.
Changelog
- 0.15.02026-11-19The 20 px radio answers a 44 px touch.
- 0.12.02026-11-18Disabled is never faded: the disc keeps its edge; when chosen, a grey ring and dot instead of the primary.
- 0.7.02026-11-17The dot fades in instead of rising.