product | title | components | githubLabel |
---|---|---|---|
material-ui |
Textarea Autosize React component |
TextareaAutosize |
component: TextareaAutosize |
The Textarea Autosize component gives you a textarea HTML element that automatically adjusts its height to match the length of the content within.
:::warning
Textarea Autosize is now part of the standalone MUI Base component library.
It is currently re-exported in @mui/material
for convenience, but it may be deprecated in a future major version of Material UI.
To continue using this component and avoid future breaking changes, we strongly recommend that you install MUI Base and import this component from the @mui/base
package:
import TextareaAutosize from '@mui/base/TextareaAutosize';
Please refer to the Textarea Autosize component page in the MUI Base docs for examples and details on usage. :::