Skip to content
+

Textarea Autosize

The Textarea Autosize component gives you a textarea HTML element that automatically adjusts its height to match the length of the content within.

TextareaAutosize API

Import

import { TextareaAutosize } from '@base_ui/react/legacy/TextareaAutosize';

Props

NameTypeDefaultDescription
maxRowsnumber
| string
-

Maximum number of rows to display.

minRowsnumber
| string
1

Minimum number of rows to display.


The ref is forwarded to the root element.