Back to RadioGroup
View full API on RadioGroup
RadioGroup
Horizontal options
Theme preference rendered inline from the options array.
API
| Prop | Type | Default | Description |
|---|---|---|---|
| options | { value: string; text: string; disabled?: boolean; helpText?: React.ReactNode }[] | — | Declarative option list. |
| value / defaultValue | string | — | Controlled / uncontrolled selected value. |
| onValueChange | (value: string) => void | — | Fires when the selection changes. |
| label | React.ReactNode | — | Top field label. |
| helpText | React.ReactNode | — | Group-level help text. |
| error | React.ReactNode | — | Error text; sets `aria-invalid` on the group. |
| orientation | "horizontal" | "vertical" | vertical | Layout and keyboard navigation direction. |
| controlPosition | "start" | "end" | start | Inline-start/end placement for each option. |