Components · Form Controls
Group of mutually exclusive radio inputs.
import { Radio Group } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| RadioGroup.Root | compound | — | — | Root provider that manages selection state. |
| RadioGroup.Item | compound | — | — | Individual radio option within the group. |
| value | string | — | — | The controlled selected value. |
| defaultValue | string | — | — | The initial selected value when uncontrolled. |
| onValueChange | (value: string) => void | — | — | Callback fired when the selection changes. |
| disabled | boolean | — | — | Disables all items in the group. |
| orientation | 'horizontal' | 'vertical' | — | — | Layout orientation of the radio items. |