Radio 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.
valuestring—Controlled selected value.
defaultValuestring—Initial selected option value.
onChange(value: string) => void—Callback invoked when a different option is selected.
namestring—Form input name attribute grouping the radio items.
classNamestring—Custom styling classes.