HelpTribe.

Textarea

Multi-line text input for longer content. Supports error states, resizing, and pairs with the Label component.

Installation

$ npx shadcn@latest add textarea

Preview

Usage (React/TSX)

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

export default function FeedbackForm() {
  return (
    <div className="space-y-3">
      <Label>Your feedback</Label>
      <Textarea placeholder="Tell us what you think..." rows={4} />
    </div>
  )
}

Props

PropTypeDefaultDescription
errorbooleanfalseShows error state with red border.
placeholderstringβ€”Placeholder text.
disabledbooleanfalseDisables the textarea.
classNamestringβ€”Additional CSS classes to apply.