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.3 KiB
TypeScript
40 lines
1.3 KiB
TypeScript
import {
|
|
Field,
|
|
FieldDescription,
|
|
FieldLabel,
|
|
FieldLegend,
|
|
FieldSet,
|
|
} from "@/examples/base/ui/field"
|
|
import { RadioGroup, RadioGroupItem } from "@/examples/base/ui/radio-group"
|
|
|
|
export function RadioGroupFieldset() {
|
|
return (
|
|
<FieldSet className="w-full max-w-xs">
|
|
<FieldLegend variant="label">Subscription Plan</FieldLegend>
|
|
<FieldDescription>
|
|
Yearly and lifetime plans offer significant savings.
|
|
</FieldDescription>
|
|
<RadioGroup defaultValue="monthly">
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="monthly" id="plan-monthly" />
|
|
<FieldLabel htmlFor="plan-monthly" className="font-normal">
|
|
Monthly ($9.99/month)
|
|
</FieldLabel>
|
|
</Field>
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="yearly" id="plan-yearly" />
|
|
<FieldLabel htmlFor="plan-yearly" className="font-normal">
|
|
Yearly ($99.99/year)
|
|
</FieldLabel>
|
|
</Field>
|
|
<Field orientation="horizontal">
|
|
<RadioGroupItem value="lifetime" id="plan-lifetime" />
|
|
<FieldLabel htmlFor="plan-lifetime" className="font-normal">
|
|
Lifetime ($299.99)
|
|
</FieldLabel>
|
|
</Field>
|
|
</RadioGroup>
|
|
</FieldSet>
|
|
)
|
|
}
|