Radio Group
A set of mutually exclusive options.
- Forms
- 1 file
- 1 npm package
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add radio-groupnpm packages installed: radix-ui.
import { RadioGroup } from "@/components/ui/radio-group";Default
With Descriptions
With None Option
With Disabled Option
Spring Dot
<RadioGroup>
Every prop of Radix UI’s RadioGroup.Root, plus className.
<RadioGroupItem>
Every prop of Radix UI’s RadioGroup.Item, plus className.
Arrow keys move between options and select as they go, and the group is a single tab stop — the standard radio model. Give the group an accessible name with aria-labelledby, and each item a Label tied by htmlFor/id.
8/8
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — passes
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes