storybook/docs/snippets/common/button-story-remix-docspage.ts.mdx
2021-06-28 23:00:33 +01:00

38 lines
627 B
Plaintext

```ts
// Button.stories.ts | Button.stories.tsx
import React from 'react';
import { Story, Meta } from '@storybook/react';
import {
Title,
Subtitle,
Description,
Primary,
ArgsTable,
Stories,
PRIMARY_STORY,
} from '@storybook/addon-docs';
import { Button, ButtonProps } from './Button';
export default {
title: 'Button',
component: Button,
parameters: {
docs: {
page: () => (
<>
<Title />
<Subtitle />
<Description />
<Primary />
<ArgsTable story={PRIMARY_STORY} />
<Stories />
</>
),
},
},
} as Meta;
```