storybook/docs/snippets/react/button-story-default-export-with-component.ts.mdx
2022-11-17 16:33:22 +01:00

19 lines
404 B
Plaintext

```tsx
// Button.stories.ts|tsx
import type { Meta } from '@storybook/react';
import { Button } from './Button';
const meta: Meta<typeof Button> = {
/* 👇 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: 'Button',
component: Button,
};
export default meta;
```