TextareaForm() — ui Function Reference
Architecture documentation for the TextareaForm() function in textarea-form.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD f2e3e57c_8428_ddd5_71fe_adedfa9059d7["TextareaForm()"] 059f3e90_1daa_d83e_45e7_519e8fcc5313["textarea-form.tsx"] f2e3e57c_8428_ddd5_71fe_adedfa9059d7 -->|defined in| 059f3e90_1daa_d83e_45e7_519e8fcc5313 style f2e3e57c_8428_ddd5_71fe_adedfa9059d7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/examples/textarea-form.tsx lines 31–74
export default function TextareaForm() {
const form = useForm<z.infer<typeof FormSchema>>({
resolver: zodResolver(FormSchema),
})
function onSubmit(data: z.infer<typeof FormSchema>) {
toast({
title: "You submitted the following values:",
description: (
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
</pre>
),
})
}
return (
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="w-2/3 space-y-6">
<FormField
control={form.control}
name="bio"
render={({ field }) => (
<FormItem>
<FormLabel>Bio</FormLabel>
<FormControl>
<Textarea
placeholder="Tell us a little bit about yourself"
className="resize-none"
{...field}
/>
</FormControl>
<FormDescription>
You can <span>@mention</span> other users and organizations.
</FormDescription>
<FormMessage />
</FormItem>
)}
/>
<Button type="submit">Submit</Button>
</form>
</Form>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does TextareaForm() do?
TextareaForm() is a function in the ui codebase, defined in deprecated/www/registry/new-york/examples/textarea-form.tsx.
Where is TextareaForm() defined?
TextareaForm() is defined in deprecated/www/registry/new-york/examples/textarea-form.tsx at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free