Textarea

A native textarea element.

Loading...
Loading code...

Installation

pnpm dlx shadcn@latest add @uitopia/textarea

Usage

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

Examples

For accessible labelling and validation, prefer using the Field component to wrap textareas. See the related example: Textarea field.

Small Size

Loading...
Loading code...

Large Size

Loading...
Loading code...

Disabled

Loading...
Loading code...

With Label

Loading...
Loading code...

Form Integration

Loading...
Loading code...

Comparing with shadcn

Compared to shadcn/ui, our Textarea component includes size variants (sm, default, lg) for better density control. For visual consistency, if you're using size="lg" on other form elements like inputs, you should add the same size to textareas as well.