Meta

Custom JavaScript components tailored for handling post type meta data in Gutenberg. You can use components in the:

1. PluginSidebar

index.js
import { __ } from '@wordpress/i18n';

import {
	PluginSidebar,
} from '@wordpress/editor';

import {
	PanelBody,
} from '@wordpress/components';

const TestPluginSidebar = () => (
	<PluginSidebar
		name="test-plugin-sidebar"
		title={ __('Test Plugin Sidebar', 'your-theme-name') }
		icon="paperclip"
	>
		<PanelBody>
			...
		</PanelBody>
	</PluginSidebar>
);

registerPlugin('test-settings-plugin-sidebar', {
	render: TestPluginSidebar,
});

2. PluginDocumentSettingPanel

3. InspectorControls

Controls:

Last updated

Was this helpful?