Atelier UI

Search components…

Search components…

Textarea Autosize

Textarea that grows with its content up to a max row count, with an optional character counter.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

TextareaAutosizeProps

Also accepts all props of Omit<React.ComponentProps<"textarea">, "rows">

PropTypeDefaultDescription
minRowsnumber2—
maxRowsnumber8—
showCountbooleanfalseShow a live character counter (needs maxLength)

Install

$ npx shadcn@latest add https://chromotion.dev/r/textarea-autosize.json

More like this