field-demo.tsx — ui Source File
Architecture documentation for field-demo.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 959e0b25_074e_560e_cb7b_42377e263f4a["field-demo.tsx"] 4b1d2128_46d9_46f0_b915_b6e1925b7876["button"] 959e0b25_074e_560e_cb7b_42377e263f4a --> 4b1d2128_46d9_46f0_b915_b6e1925b7876 0e5204ae_c5d7_cc02_3599_620cb7011a92["checkbox"] 959e0b25_074e_560e_cb7b_42377e263f4a --> 0e5204ae_c5d7_cc02_3599_620cb7011a92 b5f68436_cf6b_fba3_fb29_abf27fd13442["field"] 959e0b25_074e_560e_cb7b_42377e263f4a --> b5f68436_cf6b_fba3_fb29_abf27fd13442 9af00736_7b63_3c3c_87d0_68c5200c5d80["input"] 959e0b25_074e_560e_cb7b_42377e263f4a --> 9af00736_7b63_3c3c_87d0_68c5200c5d80 d7940e38_2a13_bbd2_a77a_58753570dfd5["select"] 959e0b25_074e_560e_cb7b_42377e263f4a --> d7940e38_2a13_bbd2_a77a_58753570dfd5 f82546d2_9d65_5165_7279_d0fc6dc815e8["textarea"] 959e0b25_074e_560e_cb7b_42377e263f4a --> f82546d2_9d65_5165_7279_d0fc6dc815e8 style 959e0b25_074e_560e_cb7b_42377e263f4a 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 default function FieldDemo() {
return (
<div className="w-full max-w-md">
<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="Evil Rabbit"
required
/>
</Field>
<Field>
<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 card number
</FieldDescription>
</Field>
<div className="grid grid-cols-3 gap-4">
<Field>
<FieldLabel htmlFor="checkout-exp-month-ts6">
Month
// ... (97 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- checkbox
- field
- input
- select
- textarea
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, ContentSourcing 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.
Where is field-demo.tsx in the architecture?
field-demo.tsx is located at apps/v4/examples/radix/field-demo.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free