Radio Group
A group of radio buttons for selecting a single option from a list.
Import
Usage
RadioGroup Props
| Attribute | Type | Default | Description |
|---|---|---|---|
| value | string | - | The controlled value of the selected radio item. |
| defaultValue | string | - | The default value (uncontrolled). |
| onValueChange | (value: string) => void | - | Callback when the selected value changes. |
| disabled | boolean | false | Whether the radio group is disabled. |
| className | string | - | Additional CSS classes for styling. |
RadioGroupItem Props
| Attribute | Type | Default | Description |
|---|---|---|---|
| value | string | - | The value of the radio item. |
| disabled | boolean | false | Whether the radio item is disabled. |
| className | string | - | Additional CSS classes for styling. |

