Textarea

Forms

A multi-line text input for longer form content like messages, descriptions, or comments.

Import

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

Usage

Basic Textarea

Standard multi-line text input

Custom Rows

Textarea with more visible rows

With Error

Textarea showing error state

This field is required

Disabled

Textarea in disabled state

API Reference

PropTypeDefaultDescription
labelstringLabel text displayed above the textarea
placeholderstringPlaceholder text shown when empty
errorstringError message to display below the textarea
rowsnumber3Number of visible text rows
disabledbooleanfalseWhether the textarea is disabled

Related Components