mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 03:21:49 +08:00
14 lines
245 B
Plaintext
14 lines
245 B
Plaintext
```js
|
|
// /my-addon/manager.js
|
|
|
|
import React from 'react';
|
|
|
|
import { useStorybookApi } from '@storybook/manager-api';
|
|
|
|
export const Panel = () => {
|
|
const state = useStorybookApi();
|
|
|
|
return <div>do something with storybook's api</div>;
|
|
};
|
|
```
|