storybook/docs/snippets/common/my-component-story-with-storyname.js.mdx
2020-10-07 12:23:34 +08:00

9 lines
173 B
Plaintext

```js
// MyComponent.stories.js
export const Simple = () => <MyComponent />;
Simple.storyName = 'So simple!';
Simple.decorators = [ ... ];
Simple.parameters = { ... };
```