RadioGroup
One choice out of many. The group wraps Radio items in a fieldset with a real legend.
Example
<RadioGroup name="frequency" label="Email frequency">
<Radio name="frequency" value="daily" label="Daily" />
<Radio name="frequency" value="weekly" label="Weekly" />
<Radio name="frequency" value="monthly" label="Monthly" checked />
</RadioGroup>Props (RadioGroup)
| Prop | Type | Default | Description |
|---|---|---|---|
name | string | - | Shared radio name; message ids derive from it. |
label | string | - | Legend text. |
hint / error | string | - | Wired via aria-describedby on the fieldset. |
Accessibility
- Arrow keys move between options natively; Tab enters and leaves the group once.
fieldset+legendgives each radio its group context.