Search documentation

Search components and pages

Textarea

A form textarea or a component that looks like one.

01

Installation

Add the textarea component with the shadcn CLI.

bash
npx shadcn@latest add https://swiss.ui.unsanity.ai/r/textarea.json
02

Usage

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

Examples

Default

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

<Textarea placeholder="Type your message here." className="w-72" />