storybook/docs/snippets/react/button-story-default-export-with-component.ts.mdx
2020-08-19 10:28:33 +08:00

13 lines
239 B
Plaintext

```ts
// Button.stories.tsx
import React from 'react';
import { Meta } from '@storybook/react/types-6-0';
import { Button, ButtonProps } from './Button';
export default {
title: 'Components/Button',
component: Button,
} as Meta;
```