Textarea

Multi-line text field with label and validation messaging.

Add it to your project

Eject the complete textarea group, then import from its generated local barrel. The copied source and CSS belong to your application.

bash
pnpm exec toucan eject textarea
app.tsx
import { Textarea } from '@/components/toucan/textarea';

Use when

Users enter free-form text that may span multiple lines.

Avoid when

The expected value is short and single-line.

Example

Optional field

API reference

Generated from packages/react/src/components. Only Toucan-specific props are listed; forwarded native props remain available as noted for each export.

Textarea

Textarea

Props type: TextareaProps

NameTypeDefaultRequiredDescription
descriptionstringundefinedNoSupporting text connected to the control.
errorstringundefinedNoValidation error text or error state.
hideLabelbooleanundefinedNoVisually hide the label while keeping it available to assistive technology.
labelstringundefinedNoVisible or accessible label for the control.
requiredbooleanundefinedNoMarks the control as required.
resize"none" | "both" | "horizontal" | "vertical"'vertical'NoAllowed browser resize direction for the textarea.

Also accepts the native children or textarea attributes that are not replaced by a Toucan prop.

Type exports

TextareaProps

Accessibility

  • Labels, descriptions, required state, and errors are connected to the textarea.

Token families

textareafocus

Related components