Skip to content

TextareaAutosize API

The API documentation of the TextareaAutosize React component. Learn more about the properties and the CSS customization points.

import TextareaAutosize from '@material-ui/core/TextareaAutosize';

Props

Name Type Default Description
rows union: string |
 number
Minimum umber of rows to display.
rowsMax union: string |
 number
Maximum number of rows to display.

The ref is forwarded to the root element.

Any other properties supplied will be provided to the root element (native element).

Notes

The component is fully StrictMode compatible.

Demos