Components

Textarea

A multi-line text field.

Installation

npx shadcn@latest add @blank/textarea

Usage

import { Textarea } from "@/components/ui/textarea"
<Textarea placeholder="Type your message here." />

Examples

With a counter

The textarea grows with its content (field-sizing: content) from a 120px minimum.

160 characters left

Invalid

API Reference

Textarea

Every textarea prop. It shares Input's field surface, border and focus ring; there is no size. Set a height with className when you need one.