Radio Group
NewformAccessible radio option group with descriptions, disabled options, and controlled or uncontrolled state.
import { RadioGroup } from '@/components/forge'Preview
Radio Group
Code Example
Props
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | - | Yes | Shared radio input name |
options | RadioOption[] | - | Yes | Radio options rendered in order |
value | string | - | No | Controlled selected value |
defaultValue | string | - | No | Initial selected value |
onValueChange | (value: string) => void | - | No | Callback when selection changes |
Variants
defaultdisabled
Accessibility
- Uses native radio inputs
- Group exposes role="radiogroup"
- Labels are linked to each option