storybook/docs/snippets/common/button-story-remix-docspage.ts.mdx
Norbert de Langen 84a4bde3f0
FIX
2020-12-09 14:42:24 +01:00

39 lines
615 B
Plaintext

```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/blocks';
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;
```