storybook/docs/snippets/common/my-component-story-mandatory-export.js.mdx
2021-06-28 23:00:33 +01:00

12 lines
269 B
Plaintext

```js
// MyComponent.story.js | MyComponent.story.jsx | MyComponent.story.ts | MyComponent.story.tsx
import MyComponent from './MyComponent';
export default {
title: 'Path/To/MyComponent',
component: MyComponent,
decorators: [ ... ],
parameters: { ... }
}
```