Preview
Usage
RadioGroup usage<RadioGroup label="Environment" name="env" options={environments} />API
RadioGroup APIRadioGroupProps
| prop | type | notes |
|---|---|---|
| label | string | Group label — rendered as the real `<legend>`. |
| name | string | Shared form field name. |
| options | RadioOption[] | |
| defaultValue? | string | Value checked on first render (uncontrolled). |
| required? | boolean | Marks the group required (native `required` on its radios). |
| disabled? | boolean | Disables every option. |
| hint? | string | Group-level assistive hint; joins `aria-describedby`. |
| error? | string | null | Group-level error; `status.fail`, `role="alert"`, sets `aria-invalid`. |
| orientation? | 'stack' | 'row' | 'stack' (default) or 'row' — row wraps on narrow screens. |
| mix? | MixInput | Composition passthrough for the fieldset. |