Radio Group
A set of mutually exclusive options. Only one option can be selected at a time. Built on Radix UI Radio Group.
Installation
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Controlled selected value. |
onValueChange | (value: string) => void | — | Callback when selection changes. |
defaultValue | string | — | Uncontrolled default selected value. |
disabled | boolean | false | Disables all radio items. |
orientation | "horizontal" | "vertical" | "vertical" | Orientation of the group. |