storybook/docs/snippets/common/storybook-addon-disable-addon.js.mdx
2020-12-05 01:23:05 +00:00

12 lines
239 B
Plaintext

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