mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 02:21:07 +08:00
10 lines
190 B
Plaintext
10 lines
190 B
Plaintext
```js
|
|
// /my-addon/manager.js
|
|
|
|
addons.register('my-organisation/my-addon', (api) => {
|
|
const href = api.getUrlState({
|
|
selectedKind: 'kind',
|
|
selectedStory: 'story',
|
|
}).url;
|
|
});
|
|
``` |