Textarea autosize
The TextareaAutosize
component gives you a <textarea>
HTML element that automatically adjusts its height to match the length of the content within.
TextareaAutosize
is a component that replaces the native <textarea>
HTML element.
The height of the TextareaAutosize
component automatically adjusts as a response to keyboard inputs and window resizing events.
Basic usage
import TextareaAutosize from '@mui/base/TextareaAutosize';
Press Enter to start editing
Press Enter to start editing
Press Enter to start editing