mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-02 13:07:46 +00:00
22 lines
742 B
TypeScript
22 lines
742 B
TypeScript
import { Label } from "@/registry/default/ui/label"
|
|
import { RadioGroup, RadioGroupItem } from "@/registry/default/ui/radio-group"
|
|
|
|
export default function RadioGroupDemo() {
|
|
return (
|
|
<RadioGroup defaultValue="comfortable">
|
|
<div className="flex items-center space-x-2">
|
|
<RadioGroupItem value="default" id="r1" />
|
|
<Label htmlFor="r1">Default</Label>
|
|
</div>
|
|
<div className="flex items-center space-x-2">
|
|
<RadioGroupItem value="comfortable" id="r2" />
|
|
<Label htmlFor="r2">Comfortable</Label>
|
|
</div>
|
|
<div className="flex items-center space-x-2">
|
|
<RadioGroupItem value="compact" id="r3" />
|
|
<Label htmlFor="r3">Compact</Label>
|
|
</div>
|
|
</RadioGroup>
|
|
)
|
|
}
|