Skip to content

Latest commit

 

History

History

README.md

Block mover

Block movers allow moving blocks inside the editor using up and down buttons.

Block mover screenshot

Table of contents

  1. Development guidelines
  2. Related components

Development guidelines

Usage

Shows the block mover buttons in the block toolbar.

import { BlockMover } from '@wordpress/block-editor';
const MyMover = () => <BlockMover clientIds={ [ clientId ] } />;

Props

clientIds

Blocks IDs

  • Type: Array

Related components

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.