Text Area

A text area allows users to enter multi-line text.

<TextField>
  <Label>Description</Label>
  <TextArea />
</TextField>

Installation

npx shadcn@latest add @dotui/text-area

Usage

Use TextArea to allow users to enter multi-line text content.

import { TextField } from "@/components/ui/text-field";
import { TextArea } from "@/components/ui/input";
import { Label } from "@/components/ui/field";
<TextField>
  <Label>Description</Label>
  <TextArea />
</TextField>

Playground

Use the controls below to experiment with different text area props and see the live preview and code update.

<TextField>
  <TextAreaInput placeholder="Enter description..." />
</TextField>

API Reference

A textarea allows a user to input multi-line text.

PropType
"sm" | "md" | "lg"
union
string
string

Last updated on 1/13/2026

Built with passion by @mehdibha.