InputForm() — ui Function Reference
Architecture documentation for the InputForm() function in input-form.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 08949e0f_0dba_4f9a_8e2c_ce471682283f["InputForm()"] 68e37c24_f5df_fe56_cdf2_47a735032ca0["input-form.tsx"] 08949e0f_0dba_4f9a_8e2c_ce471682283f -->|defined in| 68e37c24_f5df_fe56_cdf2_47a735032ca0 style 08949e0f_0dba_4f9a_8e2c_ce471682283f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/input-form.tsx lines 17–69
export function InputForm() {
return (
<form className="w-full max-w-sm">
<FieldGroup>
<Field>
<FieldLabel htmlFor="form-name">Name</FieldLabel>
<Input
id="form-name"
type="text"
placeholder="Evil Rabbit"
required
/>
</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>
<SelectItem value="us">United States</SelectItem>
<SelectItem value="uk">United Kingdom</SelectItem>
<SelectItem value="ca">Canada</SelectItem>
</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>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does InputForm() do?
InputForm() is a function in the ui codebase, defined in apps/v4/examples/radix/input-form.tsx.
Where is InputForm() defined?
InputForm() is defined in apps/v4/examples/radix/input-form.tsx at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free