mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 01:21:06 +08:00
7 lines
156 B
Plaintext
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));
|
|
});
|
|
``` |