Radio Group

Inputs & Controls

macOS round radio button selection group.

Installation

$npx shadcn-macos@latest add radio-group

Examples

Props

<RadioGroup />
PropTypeDefaultDescription
options*{ value: string; label: string; description?: string; disabled?: boolean }[]Array of radio options to render.
valuestringControlled selected value.
defaultValuestringInitial selected option value.
onChange(value: string) => voidCallback invoked when a different option is selected.
namestringForm input name attribute grouping the radio items.
classNamestringCustom styling classes.