mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:01:21 +08:00
14 lines
271 B
Plaintext
14 lines
271 B
Plaintext
```js
|
|
// .storybook/my-addon/register.js
|
|
|
|
export const Panel = () => {
|
|
const value = useParameter('parameter-key', 'default value');
|
|
|
|
return (
|
|
<div>
|
|
for the currently selected story, the parameter for "parameter-key" is:
|
|
{value}
|
|
</div>
|
|
);
|
|
};
|
|
``` |