PluginSidebar Edit

This slot allows for adding items into the Gutenberg Toolbar.
Using this slot will add an icon to the bar that, when clicked, will open a sidebar with the content of the items wrapped in the <PluginSidebar /> component.

Example Example

const { registerPlugin } = wp.plugins;
const { PluginSidebar } = wp.editPost;

const PluginSidebarTest = () => {
            title='My Plugin'
            <p>Plugin Sidebar</p>
registerPlugin( 'plugin-sidebar-test', { render: PluginSidebarTest } );

Top ↑

Location Location

Closed State Closed State

Closed State

Top ↑

Open State Open State

Open State