Textarea

A multi-line text input.

Installation

bash
npx shadcn@latest add textarea

Import

import { Textarea } from "@/components/ui/textarea"

Default

Disabled

With Label

Your message will be copied to support.

With Button

Props

PROPTYPEDEFAULTDESCRIPTION
placeholderstring—Placeholder text
disabledbooleanfalseDisables the textarea
rowsnumber—Number of visible text lines
valuestring—Controlled value
onChange(e: ChangeEvent) => void—Change handler