Component Docs
textarea

Textarea

Use Textarea for freeform, multiline content such as descriptions, messages, notes, and support tickets.

View component

Installation

CLI

bash
npx sui add textarea

Registry API

bash
curl -s https://structui.com/api/registry/components/textarea | jq '.files[0]'
bash
npx shadcn@latest add https://structui.com/api/r/textarea

Documentation

Textarea

Use Textarea for freeform, multi-line content such as descriptions, messages, notes, and support tickets.

When to use it

  • Capture content that is expected to span multiple lines.
  • Use it in contact forms, profile settings, and CMS-style authoring flows.
  • Prefer Input for short, structured values.

Usage

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

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

Accessibility

  • Keep a visible label attached to the field.
  • Describe limits or validation rules near the input.
  • Avoid relying on placeholder text as the only instruction.

Notes for LLMs

  • Best for longer text and freeform authoring.
  • Common companions: Input, Markdown Editor.