Textarea
A multi-line text field that can grow with its content — no JavaScript required.
Inputs
Playground
Tweak the props, the preview and the code follow.
Props
3
<Textarea placeholder="Leave a comment…" rows={3} autoResize />Installation
npx @plumsydev/plum-ui add textareaAlso pulls in label automatically.
Usage
import { Textarea } from "@/components/ui/textarea"<Textarea autoResize placeholder="Write something…" />Examples
Auto resize
autoResize uses CSS field-sizing: content. Browsers without support fall back to a fixed height.
With counter
0/180
API Reference
Textarea
Extends the native textarea element.
| Prop | Type | Default |
|---|---|---|
autoResizeGrow with content using field-sizing. | boolean | false |