Forms
Radio Group
One lit bulb in a row of unlit ones.
npx shadcn@latest add https://ui.netm8.com/r/radio-group.json@base-ui/react
Forms
One lit bulb in a row of unlit ones.
npx shadcn@latest add https://ui.netm8.com/r/radio-group.jsonimport { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
export default function RadioGroupDemo() {
return (
<RadioGroup defaultValue="dusk" aria-label="Time of day" className="text-sm">
<label className="flex items-center gap-2.5">
<RadioGroupItem value="dusk" /> Dusk
</label>
<label className="flex items-center gap-2.5">
<RadioGroupItem value="night" /> Night
</label>
<label className="flex items-center gap-2.5">
<RadioGroupItem value="dawn" /> Dawn
</label>
</RadioGroup>
)
}