Textarea

Multiline textarea with a 96px minimum height, comfortable line height, hairline border, focus ring and subtle placeholder. A shadcn-compatible Textarea.

src/registry/ui/textarea.tsx/r/textarea.json

Default

Installation#

bash
npx shadcn@latest add @minidev/textarea

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/textarea.json

Usage#

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

export function Example() {
  return (
    <Textarea id="ta" placeholder="Write something…" />
  )
}

API reference#

Also accepts every prop of <textarea>, passed through to the root element.

Examples#

All form components