Textarea Autosize
Textarea that grows with its content up to a max row count, with an optional character counter.
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">
| Prop | Type | Default | Description |
|---|---|---|---|
| minRows | number | 2 | — |
| maxRows | number | 8 | — |
| showCount | boolean | false | Show a live character counter (needs maxLength) |
Install
$ npx shadcn@latest add https://chromotion.dev/r/textarea-autosize.json