Skip to content

TextareaAutosize API

API documentation for the React TextareaAutosize component. Learn about the available props and the CSS API.

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

Props of the native component are also available.

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.

Demos


TextField
Was this page helpful?
TimePicker
Thanks for your feedback!

Please let us know what we could do to improve this page.