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

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;
});
```