storybook/docs/snippets/common/storybook-addons-api-on.js.mdx
2020-08-14 21:46:15 +01:00

7 lines
167 B
Plaintext

```js
// .storybook/my-addon/register.js
addons.register('my-organisation/my-addon', (api) => {
api.on('some-event', (eventData) => console.log(eventData));
});
```