Textarea

A resizable glass-morphism textarea with focus glow and error state support.

Preview

Installation

npx shadcn@latest add @shadszn/textarea

Usage

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

export default function Example() {
  return <Textarea placeholder="Write your message..." rows={4} />
}

Error State

<Textarea error placeholder="This field is required" />

Props

PropTypeDefaultDescription
errorbooleanfalseApplies red border styling to indicate an error.
placeholderstring---Placeholder text.
rowsnumber---Number of visible text rows.
disabledbooleanfalseDisables the textarea.