View fulldotdev/ui on GitHub

Textarea

Displays a form textarea or a component that looks like a textarea.

Installation

npx shadcn@latest add @fulldev/textarea

Usage

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

Field

Use Field, FieldLabel, and FieldDescription to create a textarea with a label and description.

Disabled

Use the disabled prop to disable the textarea.

Invalid

Use the aria-invalid prop to mark the textarea as invalid.

Button

Pair with Button to create a textarea with a submit button.

RTL

To enable RTL support in shadcn/ui, see the RTL configuration guide.

API Reference

Source: react/src/components/ui/textarea.tsx