mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-24 21:25:55 +00:00
28 lines
870 B
TypeScript
28 lines
870 B
TypeScript
import { Field, FieldLabel } from "@/examples/base/ui/field"
|
|
import { RadioGroup, RadioGroupItem } from "@/examples/base/ui/radio-group"
|
|
|
|
export function RadioGroupBasic() {
|
|
return (
|
|
<RadioGroup defaultValue="comfortable">
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="default" id="r1" />
|
|
<FieldLabel htmlFor="r1" className="font-normal">
|
|
Default
|
|
</FieldLabel>
|
|
</Field>
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="comfortable" id="r2" />
|
|
<FieldLabel htmlFor="r2" className="font-normal">
|
|
Comfortable
|
|
</FieldLabel>
|
|
</Field>
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="compact" id="r3" />
|
|
<FieldLabel htmlFor="r3" className="font-normal">
|
|
Compact
|
|
</FieldLabel>
|
|
</Field>
|
|
</RadioGroup>
|
|
)
|
|
}
|