For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
0
Sponsor

Textarea

Displays a form textarea or a component that looks like a textarea.

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

export function TextareaDemo() {
  return (
    <Textarea placeholder="Type your message here." style={{ maxWidth: 320 }} />
  );

Installation

$ pnpm dlx shadcn@latest add https://shadcn-cssinjs.vercel.app/r/textarea.json

Usage

import { Textarea } from "@/components/ui/textarea/textarea";
<Textarea placeholder="Type your message here." />

RTL

To enable right-to-left support, see the RTL guide.

"use client";

import { useTranslation } from "@/components/language-selector";
import type { Translations } from "@/components/language-selector";
import { Textarea } from "@/components/textarea/textarea";

API Reference

Textarea

The Textarea component is a styled wrapper around the native <textarea> element and accepts all of its props.

PropTypeDefault
classNamestring-