跳转到内容

TextareaAutosize API

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

Import

import TextareaAutosize from '@material-ui/core/TextareaAutosize';
// or
import { TextareaAutosize } from '@material-ui/core';
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
1Minimum number of rows to display.

The ref is forwarded to the root element.
Any other props supplied will be provided to the root element (native element).

Demos


TextField
这个页面是否有用?
Timeline
感谢您的反馈 !

请让我们知道我们可以做些什么来改善这个页面。