field-demo.tsx — ui Source File
Architecture documentation for field-demo.tsx, a tsx file in the ui codebase. 6 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR e50a257b_8112_dc95_8438_929982f3600b["field-demo.tsx"] 4b1d2128_46d9_46f0_b915_b6e1925b7876["button"] e50a257b_8112_dc95_8438_929982f3600b --> 4b1d2128_46d9_46f0_b915_b6e1925b7876 0e5204ae_c5d7_cc02_3599_620cb7011a92["checkbox"] e50a257b_8112_dc95_8438_929982f3600b --> 0e5204ae_c5d7_cc02_3599_620cb7011a92 b5f68436_cf6b_fba3_fb29_abf27fd13442["field"] e50a257b_8112_dc95_8438_929982f3600b --> b5f68436_cf6b_fba3_fb29_abf27fd13442 9af00736_7b63_3c3c_87d0_68c5200c5d80["input"] e50a257b_8112_dc95_8438_929982f3600b --> 9af00736_7b63_3c3c_87d0_68c5200c5d80 d7940e38_2a13_bbd2_a77a_58753570dfd5["select"] e50a257b_8112_dc95_8438_929982f3600b --> d7940e38_2a13_bbd2_a77a_58753570dfd5 f82546d2_9d65_5165_7279_d0fc6dc815e8["textarea"] e50a257b_8112_dc95_8438_929982f3600b --> f82546d2_9d65_5165_7279_d0fc6dc815e8 53860de0_4d86_dc1d_c85a_07c01f0d1a07["index.tsx"] 53860de0_4d86_dc1d_c85a_07c01f0d1a07 --> e50a257b_8112_dc95_8438_929982f3600b style e50a257b_8112_dc95_8438_929982f3600b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/examples/radix/ui/button"
import { Checkbox } from "@/examples/radix/ui/checkbox"
import {
Field,
FieldDescription,
FieldGroup,
FieldLabel,
FieldLegend,
FieldSeparator,
FieldSet,
} from "@/examples/radix/ui/field"
import { Input } from "@/examples/radix/ui/input"
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/examples/radix/ui/select"
import { Textarea } from "@/examples/radix/ui/textarea"
export function FieldDemo() {
return (
<div className="w-full max-w-md rounded-xl border p-6">
<form>
<FieldGroup>
<FieldSet>
<FieldLegend>Payment Method</FieldLegend>
<FieldDescription>
All transactions are secure and encrypted
</FieldDescription>
<FieldGroup>
<Field>
<FieldLabel htmlFor="checkout-7j9-card-name-43j">
Name on Card
</FieldLabel>
<Input
id="checkout-7j9-card-name-43j"
placeholder="John Doe"
required
/>
</Field>
<div className="grid grid-cols-3 gap-4">
<Field className="col-span-2">
<FieldLabel htmlFor="checkout-7j9-card-number-uw1">
Card Number
</FieldLabel>
<Input
id="checkout-7j9-card-number-uw1"
placeholder="1234 5678 9012 3456"
required
/>
<FieldDescription>
Enter your 16-digit number.
</FieldDescription>
</Field>
<Field className="col-span-1">
<FieldLabel htmlFor="checkout-7j9-cvv">CVV</FieldLabel>
<Input id="checkout-7j9-cvv" placeholder="123" required />
// ... (99 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- checkbox
- field
- input
- select
- textarea
Imported By
Source
Frequently Asked Questions
What does field-demo.tsx do?
field-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in field-demo.tsx?
field-demo.tsx defines 1 function(s): FieldDemo.
What does field-demo.tsx depend on?
field-demo.tsx imports 6 module(s): button, checkbox, field, input, select, textarea.
What files import field-demo.tsx?
field-demo.tsx is imported by 1 file(s): index.tsx.
Where is field-demo.tsx in the architecture?
field-demo.tsx is located at apps/v4/app/(app)/(root)/components/field-demo.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/(app)/(root)/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free