storybook/docs/snippets/common/my-component-story.js.mdx
2022-07-07 19:26:21 +01:00

16 lines
360 B
Plaintext

```js
// MyComponent.stories.js|jsx|ts|tsx
import { MyComponent } from './MyComponent';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'MyComponent',
component: MyComponent,
};
// Your stories
```