TextareaControls are TextControls that allow for multiple lines of text, and wrap overflow text onto a new line. They are a fixed height and scroll vertically when the cursor reaches the bottom of the field.
Import
import { TextareaControl } from '@wordpress/components';
Examples
Default
const Default = () => {
const [ value, setValue ] = useState( '' );
return (
<TextareaControl
label="Text"
help="Enter some text"
placeholder="Placeholder"
value={ value }
onChange={ ( v ) => {
setValue( v );
onChange( v );
} } />
);
};