Controls
<TextField>
<Label>Description</Label>
<TextArea />
</TextField>Installation
npm
pnpm
yarn
bun
npx shadcn@latest add @dotui/text-areaUsage
Use TextArea to allow users to enter multi-line text content.
import { TextField } from '@/components/ui/text-field'
import { TextArea, InputGroup, InputGroupAddon } from '@/components/ui/input'
import { Label } from '@/components/ui/field'<TextField>
<Label>Description</Label>
<TextArea />
</TextField>Auto-resize
TextArea grows its height to fit its content as the user types. This is automatic — there's no prop to toggle it.
Examples
Basic
Comment Composer
Feedback Form
Issue Description
API Reference
A textarea allows a user to input multi-line text.
| Prop | Type | Default | |
|---|---|---|---|
Last updated on 7/7/2026