--- productId: joy-ui title: React Textarea component components: Textarea githubLabel: 'component: TextareaAutosize' --- # Textarea

Textarea component gives you a textarea HTML element that automatically adjusts its height to match the length of the content within.

{{"component": "@mui/docs/ComponentLinkHeader", "design": false}} ## Introduction Joy UI's textarea component is built on top of the MUI Base [`TextareaAutoSize`](https://v6.mui.com/base-ui/react-textarea-autosize/) component. {{"demo": "TextareaUsage.js", "hideToolbar": true, "bg": "gradient"}} ## Component After [installation](/joy-ui/getting-started/installation/), you can start building with this component using the following basic elements: ```jsx import Textarea from '@mui/joy/Textarea'; export default function MyApp() { return