Radio Group
Inputs & Controls
macOS round radio button selection group.
Installation
$npx shadcn-macos@latest add radio-group
Examples
Props
<RadioGroup />| Prop | Type | Default | Description |
|---|---|---|---|
| options* | { value: string; label: string; description?: string; disabled?: boolean }[] | — | Array of radio options to render. |
| value | string | — | Controlled selected value. |
| defaultValue | string | — | Initial selected option value. |
| onChange | (value: string) => void | — | Callback invoked when a different option is selected. |
| name | string | — | Form input name attribute grouping the radio items. |
| className | string | — | Custom styling classes. |