field-responsive.tsx — ui Source File
Architecture documentation for field-responsive.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3d8598fd_633f_502b_b4ef_430c803ef56e["field-responsive.tsx"] 57e86e45_ac6e_7278_be08_9092724e8401["button"] 3d8598fd_633f_502b_b4ef_430c803ef56e --> 57e86e45_ac6e_7278_be08_9092724e8401 169af77a_46c3_8fec_4801_f34a0f1a3471["field"] 3d8598fd_633f_502b_b4ef_430c803ef56e --> 169af77a_46c3_8fec_4801_f34a0f1a3471 80cf663d_a411_487c_d69e_ac9d405cd2ec["input"] 3d8598fd_633f_502b_b4ef_430c803ef56e --> 80cf663d_a411_487c_d69e_ac9d405cd2ec a1802a9d_1c52_7ef5_709a_134c4400c1c3["textarea"] 3d8598fd_633f_502b_b4ef_430c803ef56e --> a1802a9d_1c52_7ef5_709a_134c4400c1c3 style 3d8598fd_633f_502b_b4ef_430c803ef56e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/registry/new-york-v4/ui/button"
import {
Field,
FieldContent,
FieldDescription,
FieldGroup,
FieldLabel,
FieldLegend,
FieldSeparator,
FieldSet,
} from "@/registry/new-york-v4/ui/field"
import { Input } from "@/registry/new-york-v4/ui/input"
import { Textarea } from "@/registry/new-york-v4/ui/textarea"
export default function FieldResponsive() {
return (
<div className="w-full max-w-4xl">
<form>
<FieldSet>
<FieldLegend>Profile</FieldLegend>
<FieldDescription>Fill in your profile information.</FieldDescription>
<FieldSeparator />
<FieldGroup>
<Field orientation="responsive">
<FieldContent>
<FieldLabel htmlFor="name">Name</FieldLabel>
<FieldDescription>
Provide your full name for identification
</FieldDescription>
</FieldContent>
<Input id="name" placeholder="Evil Rabbit" required />
</Field>
<FieldSeparator />
<Field orientation="responsive">
<FieldContent>
<FieldLabel htmlFor="lastName">Message</FieldLabel>
<FieldDescription>
You can write your message here. Keep it short, preferably
under 100 characters.
</FieldDescription>
</FieldContent>
<Textarea
id="message"
placeholder="Hello, world!"
required
className="min-h-[100px] resize-none sm:min-w-[300px]"
/>
</Field>
<FieldSeparator />
<Field orientation="responsive">
<Button type="submit">Submit</Button>
<Button type="button" variant="outline">
Cancel
</Button>
</Field>
</FieldGroup>
</FieldSet>
</form>
</div>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- field
- input
- textarea
Source
Frequently Asked Questions
What does field-responsive.tsx do?
field-responsive.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in field-responsive.tsx?
field-responsive.tsx defines 1 function(s): FieldResponsive.
What does field-responsive.tsx depend on?
field-responsive.tsx imports 4 module(s): button, field, input, textarea.
Where is field-responsive.tsx in the architecture?
field-responsive.tsx is located at apps/v4/registry/new-york-v4/examples/field-responsive.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free