src/platform/plugins/shared/developer_toolbar/README.md
Plugin that enables the developer toolbar in Kibana development mode only. Other plugins can register custom items in the toolbar using the plugin contract.
For detailed information about the toolbar itself, features, and capabilities, see @kbn/developer-toolbar.
Register custom items in the developer toolbar via the plugin contract:
export class MyPlugin implements Plugin {
public setup(core: CoreSetup, plugins: { developerToolbar: DeveloperToolbarSetup }) {
plugins.developerToolbar?.registerItem({
id: 'my-debug-tool',
priority: 10,
children: <MyDebugButton />,
});
}
}
registerItem(item: DeveloperToolbarItemProps): UnregisterItemFnRegisters a custom item to appear in the developer toolbar.
Parameters:
id (string): Unique identifier for the itemchildren (React component): Content to render in the toolbarpriority (number, optional): Order in toolbar (higher = first, default: 0)Returns:
Available in: Setup and Start phases