A Textarea that grows with its content up to a max height, then scrolls.
Textarea
Height bounds are enforced; callers cannot override rows, resize, minHeight, maxHeight, or overflowY — use minHeightPx / maxHeightPx instead.
rows
resize
minHeight
maxHeight
overflowY
minHeightPx
maxHeightPx
<AutosizeTextarea value={value} onChange={(e) => setValue(e.target.value)} /> Copy
<AutosizeTextarea value={value} onChange={(e) => setValue(e.target.value)} />
A
Textareathat grows with its content up to a max height, then scrolls.Height bounds are enforced; callers cannot override
rows,resize,minHeight,maxHeight, oroverflowY— useminHeightPx/maxHeightPxinstead.