Search documentation, components, and switch theme.
A set of checkable buttons where only one can be checked at a time.
npx shadcn@latest add @formance/radio-group
npm install radix-ui lucide-react
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
<RadioGroup defaultValue="ledger"> <div className="flex items-center gap-2"> <RadioGroupItem value="ledger" id="ledger" /> <Label htmlFor="ledger">Ledger</Label> </div> <div className="flex items-center gap-2"> <RadioGroupItem value="payments" id="payments" /> <Label htmlFor="payments">Payments</Label> </div> </RadioGroup>