UI.MD

Textarea

A multi-line text input field.

Installation

$
npx shadcn@latest add https://ui.mattdowney.com/r/textarea.json

Usage

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

Examples

Default

Multi-line input with a 64px floor. It is full-width like Input, so cap it (max-w-sm here), and it grows by dragging the corner, not by typing.

States

Default, read-only and disabled side by side. Read-only sits flat on the muted fill at full opacity and still takes focus, so its text can be selected and copied; disabled dims to 70% and does not.