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
placeholderstringPlaceholder text
disabledbooleanfalseDisables the textarea
rowsnumberNumber of visible text lines
valuestringControlled value
onChange(e: ChangeEvent) => voidChange handler