Textarea
Auto-growing textarea (CSS `field-sizing`) with min/max rows and a live character counter.
3 files · 207 locdeps: clsx, tailwind-merge
Installation
With the shadcn CLI, pointing at this platform’s registry:
npx shadcn@latest add https://opusui.131199999.xyz/r/textarea.jsonOr offline, straight from your opus55 checkout (copies every file it needs):
node ../tailwind_component/opus55/scripts/add.mjs textareaUsage
import { Textarea } from "@/components/opus/ui/textarea";
<Textarea maxLength={280} showCount />API
| Prop | Type | Default | Description |
|---|---|---|---|
| autosize | boolean | true | Grow with content between minRows and maxRows. |
| minRows / maxRows | number | 3 / 12 | Height bounds in rows. |
| showCount | boolean | — | Live “n / max” counter (needs maxLength). |