File size: 383 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { TextareaControl } from '@wordpress/components';
import { useState } from 'react';

const TextareaControlExample = () => {
	const [ value, setValue ] = useState( '' );

	return (
		<TextareaControl
			label="Hidable Label Text"
			help="Help text for the textarea"
			rows={ 4 }
			value={ value }
			onChange={ setValue }
		/>
	);
};

export default TextareaControlExample;