storybook/docs/snippets/react/my-component-story-basic-and-props.js.mdx
2021-09-03 23:31:04 +01:00

18 lines
328 B
Plaintext

```js
// MyComponent.story.js | MyComponent.story.jsx | MyComponent.story.ts | MyComponent.story.tsx
import React from 'react';
import { MyComponent } from './MyComponent';
export default {
component: MyComponent,
};
export const Basic = {};
export const WithProp = {
render: () => <MyComponent prop="value" />,
};
```