Radio Group
A group context for radio buttons. Use the high-level RadioGroup for a labelled list of options, or RadioGroupRoot with individual Radio items for custom layouts.
RadioGroup
base-ui docs ↗| Prop | Type | Default |
|---|---|---|
| options* | RadioOption[] | — |
The options to render. Each becomes one | ||
| label | ReactNode | — |
Accessible group label rendered above the options. | ||
| value | string | — |
Controlled selected value. | ||
| defaultValue | string | — |
Initial selected value (uncontrolled). | ||
| onValueChange | ((value: string, eventDetails: unknown) => void) | — |
| disabled | boolean | — |
| readOnly | boolean | — |
| required | boolean | — |
| name | string | — |
HTML name for form submission. | ||
| className | string | — |
Styled Parts
base-ui docs ↗Pre-styled wrappers around the corresponding base-ui parts. All base-ui props are forwarded.
CSS Class Names
Available as keys on the RadioGroupStyles object. Each key maps to a hashed CSS module class name at runtime.
groupgroup-label