Textarea Autosize
stableA textarea that grows with its content.
Basic usage
Examples
Minimum rows
The textarea starts at minRows and grows as content wraps.
Maximum rows
Set maxRows to stop growth and let the textarea scroll.
Row limits
minRows and maxRows define the growth range.
Features
- Minimum and maximum row limits.
- Native textarea props.
Installation
bash
pnpm dlx structyl add textarea-autosizeAPI Reference
TextareaAutosize
Auto-growing textarea.
| Prop | Type | Default |
|---|---|---|
| minRows | numberMinimum rows. | 1 |
| maxRows | numberMaximum rows before scrolling. | — |
| className | stringAdditional Tailwind classes merged with the component defaults. | — |