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 RadioGroupInvalid() {
|
|
return (
|
|
<FieldSet className="w-full max-w-xs">
|
|
<FieldLegend variant="label">Notification Preferences</FieldLegend>
|
|
<FieldDescription>
|
|
Choose how you want to receive notifications.
|
|
</FieldDescription>
|
|
<RadioGroup defaultValue="email">
|
|
<Field orientation="horizontal" data-invalid>
|
|
<RadioGroupItem value="email" id="invalid-email" aria-invalid />
|
|
<FieldLabel htmlFor="invalid-email" className="font-normal">
|
|
Email only
|
|
</FieldLabel>
|
|
</Field>
|
|
<Field orientation="horizontal" data-invalid>
|
|
<RadioGroupItem value="sms" id="invalid-sms" aria-invalid />
|
|
<FieldLabel htmlFor="invalid-sms" className="font-normal">
|
|
SMS only
|
|
</FieldLabel>
|
|
</Field>
|
|
<Field orientation="horizontal" data-invalid>
|
|
<RadioGroupItem value="both" id="invalid-both" aria-invalid />
|
|
<FieldLabel htmlFor="invalid-both" className="font-normal">
|
|
Both Email & SMS
|
|
</FieldLabel>
|
|
</Field>
|
|
</RadioGroup>
|
|
</FieldSet>
|
|
)
|
|
}
|