Text Area

A multi-line text field that grows with its content.

@cupertinoui/textareaRegistry JSON

Installation

pnpm dlx shadcn@latest add @cupertinoui/textarea

The first install also adds the macOS theme. See Installation to set up the registry.

Usage

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

<Textarea placeholder="Add a comment" />

Examples

With a label

API Reference

Every part forwards the props of the underlying element. The props below are the ones CupertinoUI adds or changes.

Textarea

A styled native textarea that grows with its content.

PropTypeDescription
classNamestringExtra classes, merged with the component's own.