storybook/docs/snippets/common/my-component-story-mandatory-export.js.mdx
2021-11-09 01:41:54 +00:00

16 lines
389 B
Plaintext

```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: { ... }
}
```