RadioGroup
Exclusive selection group.
Quick Preview
Pay in equal monthly installments.
Pay every three months.
Composition
Use this public composition when building RadioGroup:
RadioGroup
└── Field
├── RadioGroupItem
└── FieldContentUsage
<RadioGroup defaultValue="monthly"><RadioGroupItem value="monthly" /></RadioGroup>Examples
Sizes
Use size directly or through Field to keep radio items aligned with form density.
Props
| Prop/API | Type | Default | Description |
|---|---|---|---|
size on RadioGroupItem | `"sm" | "md" | "lg"` |
className | string | - | Local layout or spacing overrides. |
| native/root props | React component props | - | Passed through to the underlying root or primitive. |
Accessibility
- Preserve the documented RadioGroup composition so labels, triggers, content, and controls remain connected.
- Provide visible labels or accessible names for interactive controls.
- Preserve the component-provided focus, keyboard, disabled, and invalid-state behavior.
- Do not communicate state with color alone; include text, icons, or helper copy.