[ Home ]
back

RadioGroup , shadcn/ui components例

id: 141, 2024-09-06

概要


関連


<Label>RadioCheck</Label>
<RadioGroup defaultValue="option-one">
    <div className="flex items-center space-x-2">
    <RadioGroupItem value="option-one" id="option-one" />
    <Label htmlFor="option-one">Option One</Label>
    </div>
    <div className="flex items-center space-x-2">
    <RadioGroupItem value="option-two" id="option-two" />
    <Label htmlFor="option-two">Option Two</Label>
    </div>
</RadioGroup>