storybook/docs/snippets/common/storybook-addons-api-on.js.mdx
2022-03-18 10:27:04 +01:00

7 lines
156 B
Plaintext

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