Zuplo

Textarea

A multiline text input component for forms and user input.

Import

ReactCode
import { Textarea } from "zudoku/ui/Textarea";

Basic Usage

ReactCode
<Textarea placeholder="Type your message here." />

With Label

ReactCode
<div className="grid w-full gap-1.5"> <Label htmlFor="message">Your message</Label> <Textarea placeholder="Type your message here." id="message" /> </div>

With Text

Your message will be copied to the support team.

ReactCode
<div className="grid w-full gap-1.5"> <Label htmlFor="message-2">Your message</Label> <Textarea placeholder="Type your message here." id="message-2" /> <p className="text-sm text-muted-foreground">Your message will be copied to the support team.</p> </div>

Disabled State

ReactCode
<Textarea disabled placeholder="Disabled textarea" />

Custom Height

ReactCode
<Textarea className="min-h-[150px]" placeholder="Taller textarea" />

Custom Styling

The Textarea component accepts all standard textarea HTML attributes and can be customized with additional className:

ReactCode
<Textarea className="resize-none" placeholder="Non-resizable textarea" />
Last modified on