Radio Group
A set of checkable buttons where only one can be selected at a time.
Basic
Pick one option from a mutually exclusive set.
Installation
CLI
Also needs
npm i lucide-reactComposition
structure
Usage
radio-group.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | On `RadioGroup` — controlled selected value. |
| defaultValue | string | — | On `RadioGroup` — uncontrolled initial value. |
| onValueChange | (value: string) => void | — | Called when the selected value changes. |
| disabled | boolean | false | Disable the group or an individual `RadioGroupItem`. |
| item value | string | — | On `RadioGroupItem` — required option value. |