storybook/docs/snippets/common/button-story-remix-docspage.js.mdx
2020-08-14 21:46:15 +01:00

37 lines
551 B
Plaintext

```js
// Button.stories.js
import React from 'react';
import {
Title,
Subtitle,
Description,
Primary,
Props,
Stories,
PRIMARY_STORY,
} from '@storybook/addon-docs/blocks';
import { Button } from './Button';
export default {
title: 'Components/Button',
component: Button,
parameters: {
docs: {
page: () => (
<>
<Title />
<Subtitle />
<Description />
<Primary />
<ArgsTable story={PRIMARY_STORY} />
<Stories />
</>
),
},
},
};
```