fbredius/storybook

View on GitHub
docs/snippets/common/my-component-story-mandatory-export.js.mdx

Summary

Maintainability
Test Coverage
```js
// MyComponent.story.js|jsx|ts|tsx

import { MyComponent } from './MyComponent';

export default {
  /* 👇 The title prop is optional.
  * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
  * to learn how to generate automatic titles
  */
  title: 'Path/To/MyComponent',
  component: MyComponent,
  decorators: [ ... ],
  parameters: { ... }
}
```