Loading dashboard...
Loading dashboard...
import { Label } from "@/components/ui/label"
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"<RadioGroup defaultValue="option-one">
<div className="flex items-center gap-3">
<RadioGroupItem value="option-one" id="option-one" />
<Label htmlFor="option-one">Option One</Label>
</div>
<div className="flex items-center gap-3">
<RadioGroupItem value="option-two" id="option-two" />
<Label htmlFor="option-two">Option Two</Label>
</div>
</RadioGroup>Radio group items with a description using the Field component.
Standard spacing for most use cases.
More space between elements.
Minimal spacing for dense layouts.
Use FieldLabel to wrap the entire Field for a clickable card-style selection.
Use FieldSet and FieldLegend to group radio items with a label and description.
Use the disabled prop on RadioGroup to disable all items.
Use aria-invalid on RadioGroupItem and data-invalid on Field to show validation errors.
See the Base UI Radio Group documentation.
import { Label } from "@/components/ui/label"
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
import {
Field,
FieldContent,import {
Field,
FieldDescription,import {
Field,
FieldContent,import { Field, FieldLabel } from "@/components/ui/field"
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"
import {
Field,
FieldDescription,