Search

Search components and blocks

Sign in

Textarea

Grows with its content instead of scrolling, and the growth itself is a spring, not a snap — the auto-expanding field indie hackers reach for on feedback forms and prompt boxes.

pnpm dlx shadcn@latest add @ditherui/textarea

Install

$ pnpm dlx shadcn@latest add @ditherui/textarea

Props

autoResizebooleantrue
placeholderstring—
disabledbooleanfalse

When to use the textarea

Use it for feedback forms and prompt boxes. It grows with its content instead of scrolling.

  • Open the CLI tab on any preview above for the exact shadcn command. The source is copied into your project, so you can edit it like any other file.

Suggested components