TextareaForm() — ui Function Reference
Architecture documentation for the TextareaForm() function in textarea-form.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 2625e185_d0b8_d2cd_9be7_ec70083ba162["TextareaForm()"] 43eb523c_f04e_12fe_519f_574565da4f6f["textarea-form.tsx"] 2625e185_d0b8_d2cd_9be7_ec70083ba162 -->|defined in| 43eb523c_f04e_12fe_519f_574565da4f6f style 2625e185_d0b8_d2cd_9be7_ec70083ba162 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/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/default/examples/textarea-form.tsx.
Where is TextareaForm() defined?
TextareaForm() is defined in deprecated/www/registry/default/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