storybook/docs/snippets/common/storybook-addon-disable-addon.js.mdx
2020-10-07 12:23:34 +08:00

12 lines
249 B
Plaintext

```js
// .storybook/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
});
});
```