mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +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.
15 lines
2.3 KiB
JSON
15 lines
2.3 KiB
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "field-responsive",
|
|
"registryDependencies": [
|
|
"field"
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "registry/new-york-v4/examples/field-responsive.tsx",
|
|
"content": "import { Button } from \"@/registry/new-york-v4/ui/button\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSeparator,\n FieldSet,\n} from \"@/registry/new-york-v4/ui/field\"\nimport { Input } from \"@/registry/new-york-v4/ui/input\"\nimport { Textarea } from \"@/registry/new-york-v4/ui/textarea\"\n\nexport default function FieldResponsive() {\n return (\n <div className=\"w-full max-w-4xl\">\n <form>\n <FieldSet>\n <FieldLegend>Profile</FieldLegend>\n <FieldDescription>Fill in your profile information.</FieldDescription>\n <FieldSeparator />\n <FieldGroup>\n <Field orientation=\"responsive\">\n <FieldContent>\n <FieldLabel htmlFor=\"name\">Name</FieldLabel>\n <FieldDescription>\n Provide your full name for identification\n </FieldDescription>\n </FieldContent>\n <Input id=\"name\" placeholder=\"Evil Rabbit\" required />\n </Field>\n <FieldSeparator />\n <Field orientation=\"responsive\">\n <FieldContent>\n <FieldLabel htmlFor=\"lastName\">Message</FieldLabel>\n <FieldDescription>\n You can write your message here. Keep it short, preferably\n under 100 characters.\n </FieldDescription>\n </FieldContent>\n <Textarea\n id=\"message\"\n placeholder=\"Hello, world!\"\n required\n className=\"min-h-[100px] resize-none sm:min-w-[300px]\"\n />\n </Field>\n <FieldSeparator />\n <Field orientation=\"responsive\">\n <Button type=\"submit\">Submit</Button>\n <Button type=\"button\" variant=\"outline\">\n Cancel\n </Button>\n </Field>\n </FieldGroup>\n </FieldSet>\n </form>\n </div>\n )\n}\n",
|
|
"type": "registry:example"
|
|
}
|
|
],
|
|
"type": "registry:example"
|
|
} |