Skip to content

Textarea Autosize

A textarea component for React which grows with content.

The TextareaAutosize component automatically adjust the textarea height on keyboard and window resize events.

Empty

Press Enter to start editing

Minimum height

Press Enter to start editing

Maximum height

Press Enter to start editing

Base

The TextareaAutosize component is defined in the @mui/base package. It is reexported from @mui/material for convenience. In your application you may import it from either package.

import TextareaAutosize from '@mui/base/TextareaAutosize';

API

See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.