Forms

Textarea

A multi-line text input field for entering longer content, such as comments, descriptions, or messages.

Basic

A textarea is a larger box where you can type in text, like your name, email, or a longer message.

Loading...

Installation

npx shadcn@latest add @intentui/textarea

Composed components

When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.

This component comes packed with several components to enhance functionality and provide a seamless experience.

Manual installation

npm i react-aria-components

Anatomy

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

<Textarea
  label="Address"
  description="Please enter your address"
/>

Description

You can add a description to the textarea by using the description prop.

Loading...

Controlled

You can control the textarea value by using the value prop.

Loading...

Uncontrolled

You can control the textarea value by using the defaultValue prop.

Loading...

Validation

Try submitting the form without filling it out to see the error state in action.

Loading...

Readonly

When the textarea is set to readonly, it cannot be edited.

Loading...

Disabled

When the textarea is disabled, it becomes non-editable and appears inactive.

Loading...
Unlock the full power of
Design Intent UI
Build modern web apps faster with 350+ blocks and polished templates crafted for professionals.
Explore