BlockMover component allows moving blocks inside the editor using up and down buttons.
Shows the block mover buttons in the block toolbar.
import { BlockMover } from '@wordpress/block-editor';
const MyMover = () => <BlockMover clientIds={ [ clientId ] } />;
The IDs of the blocks to move.
- Type:
Array
- Required: Yes
If this property is true, the drag handle is hidden.
- Type:
boolean
- Required: No
- Default:
false
Block Editor components are components that can be used to compose the UI of your block editor. Thus, they can only be used under a BlockEditorProvider in the components tree.