mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
import {
|
|
Field,
|
|
FieldContent,
|
|
FieldDescription,
|
|
FieldLabel,
|
|
} from "@/examples/base/ui/field"
|
|
import { RadioGroup, RadioGroupItem } from "@/examples/base/ui/radio-group"
|
|
|
|
export function RadioGroupDescription() {
|
|
return (
|
|
<RadioGroup defaultValue="comfortable" className="w-fit">
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="default" id="desc-r1" />
|
|
<FieldContent>
|
|
<FieldLabel htmlFor="desc-r1">Default</FieldLabel>
|
|
<FieldDescription>
|
|
Standard spacing for most use cases.
|
|
</FieldDescription>
|
|
</FieldContent>
|
|
</Field>
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="comfortable" id="desc-r2" />
|
|
<FieldContent>
|
|
<FieldLabel htmlFor="desc-r2">Comfortable</FieldLabel>
|
|
<FieldDescription>More space between elements.</FieldDescription>
|
|
</FieldContent>
|
|
</Field>
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="compact" id="desc-r3" />
|
|
<FieldContent>
|
|
<FieldLabel htmlFor="desc-r3">Compact</FieldLabel>
|
|
<FieldDescription>
|
|
Minimal spacing for dense layouts.
|
|
</FieldDescription>
|
|
</FieldContent>
|
|
</Field>
|
|
</RadioGroup>
|
|
)
|
|
}
|