The BlockToolbar
component is used to render a toolbar that serves as a wrapper for number of options for each block.
Displays a block toolbar for a selected block.
import { BlockToolbar } from '@wordpress/block-editor';
const MyBlockToolbar = () => <BlockToolbar />;
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.