Radio group
A group of radio buttons for selecting a single option from multiple choices.
Example
Installation
npx pragatiui-cli add radio group
Code Example
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
<RadioGroup defaultValue="option1">
<div className="flex items-center space-x-2">
<RadioGroupItem value="option1" id="option1" />
<label htmlFor="option1">Option 1</label>
</div>
<div className="flex items-center space-x-2">
<RadioGroupItem value="option2" id="option2" />
<label htmlFor="option2">Option 2</label>
</div>
</RadioGroup>