InputForm() — ui Function Reference
Architecture documentation for the InputForm() function in input-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD a929af4f_3654_0a7f_3c05_84703565d4c8["InputForm()"] 2a38594c_1959_8927_e41a_b562d6c912ae["input-example.tsx"] a929af4f_3654_0a7f_3c05_84703565d4c8 -->|defined in| 2a38594c_1959_8927_e41a_b562d6c912ae style a929af4f_3654_0a7f_3c05_84703565d4c8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/input-example.tsx lines 209–268
function InputForm() {
return (
<Example title="Form">
<form className="w-full">
<FieldGroup>
<Field>
<FieldLabel htmlFor="form-name">Name</FieldLabel>
<Input id="form-name" type="text" placeholder="John Doe" />
</Field>
<Field>
<FieldLabel htmlFor="form-email">Email</FieldLabel>
<Input
id="form-email"
type="email"
placeholder="john@example.com"
/>
<FieldDescription>
We'll never share your email with anyone.
</FieldDescription>
</Field>
<div className="grid grid-cols-2 gap-4">
<Field>
<FieldLabel htmlFor="form-phone">Phone</FieldLabel>
<Input
id="form-phone"
type="tel"
placeholder="+1 (555) 123-4567"
/>
</Field>
<Field>
<FieldLabel htmlFor="form-country">Country</FieldLabel>
<Select defaultValue="us">
<SelectTrigger id="form-country">
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem value="us">United States</SelectItem>
<SelectItem value="uk">United Kingdom</SelectItem>
<SelectItem value="ca">Canada</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</Field>
</div>
<Field>
<FieldLabel htmlFor="form-address">Address</FieldLabel>
<Input id="form-address" type="text" placeholder="123 Main St" />
</Field>
<Field orientation="horizontal">
<Button type="button" variant="outline">
Cancel
</Button>
<Button type="submit">Submit</Button>
</Field>
</FieldGroup>
</form>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does InputForm() do?
InputForm() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/input-example.tsx.
Where is InputForm() defined?
InputForm() is defined in apps/v4/registry/bases/radix/examples/input-example.tsx at line 209.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free