File size: 392 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import { BaseControl, TextareaControl } from '@wordpress/components';
import { useState } from 'react';
const BaseControlExample = () => {
const [ content, setContent ] = useState( '' );
return (
<BaseControl id="textarea-1" label="Text" help="Enter some text">
<TextareaControl value={ content } onChange={ setContent } />
</BaseControl>
);
};
export default BaseControlExample;
|