import { Flex, FlexItem, ResizableBox } from '@wordpress/components'; import { useState } from 'react'; const ResizableBoxExample = () => { const [ attributes, setAttributes ] = useState( { height: 200, width: 400, } ); const { height, width } = attributes; return (
{ setAttributes( { height: height + delta.height, width: width + delta.width, } ); } } > Resize me!
); }; export default ResizableBoxExample;