storybook/docs/_snippets/storybook-addon-disable-addon.md
2024-06-13 17:53:08 +01:00

279 B

addons.register(ADDON_ID, () => {
  addons.add(PANEL_ID, {
    type: types.PANEL,
    title: 'My Addon',
    render: () => <div>Addon tab content</div>,
    paramKey: 'myAddon', // this element
  });
});