GithubX

Radio Group

Only one option can be checked at a time.

## installation

pnpm dlx shadcn@latest add https://ascii.cnlibs.com/r/radio-group.json

## usage

import { Label } from "@/components/ui/label";
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
<RadioGroup defaultValue="pro">
  <Label>
    <RadioGroupItem value="free" />
    Free — 1 project
  </Label>
  <Label>
    <RadioGroupItem value="pro" />
    Pro — unlimited projects
  </Label>
  <Label>
    <RadioGroupItem value="team" />
    Team — shared workspace
  </Label>
</RadioGroup>

## disabled

## disabled item

A single option can be disabled while the rest stay selectable.