Textarea

Multi-line text editor with support for fluid sizing, custom borders, states, and responsive grids.

Preview & Interactive Laboratory

Default Textarea

Disabled & Custom Sizes

Vibrant Overrides

Usage & Implementation

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

<Textarea 
  placeholder="Type your message here..." 
  className="min-h-[120px] focus:ring-2"
/>
React / Tailwind

Granular Customization

1

Textarea Box

The main text area element containing standard placeholders and text values.

className={`className`}
2

Min Height

Configures default height boundaries for text input.

className={`min-h-[150px]`}
3

Focus Glow

Enhance active highlight state using custom focus colors.

className={`focus-visible:border-violet-600`}

API Reference (Props)

PropTypeDefaultDescription
placeholderstringundefinedPlaceholder message printed when input is empty.
disabledbooleanfalseDisables focus and inputs on the text block.
rowsnumber3Core initial row height index.