ComponentClient component

Radio Group

A keyboard-accessible set of mutually exclusive options.

Installation

Preview

Usage

tsx
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"

<RadioGroup defaultValue="comfortable">
  <RadioGroupItem value="compact" />
  <RadioGroupItem value="comfortable" />
</RadioGroup>

API reference

PropTypeDefaultDescription
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.