field-responsive.json — ui Source File
Architecture documentation for field-responsive.json, a json file in the ui codebase.
Entity Profile
Source Code
{
"$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"
}
Source
Frequently Asked Questions
What does field-responsive.json do?
field-responsive.json is a source file in the ui codebase, written in json.
Where is field-responsive.json in the architecture?
field-responsive.json is located at apps/v4/public/r/styles/new-york-v4/field-responsive.json (directory: apps/v4/public/r/styles/new-york-v4).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free