Skip to content

TextareaAutosize API

API reference docs for the React TextareaAutosize component. Learn about the props, CSS, and other APIs of this exported module.

Demos

For examples and details on the usage of this React component, visit the component demo pages:

Import

import TextareaAutosize from '@mui/base/TextareaAutosize';
// or
import { TextareaAutosize } from '@mui/base';
You can learn about the difference by reading this guide on minimizing bundle size.

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.