storybook/docs/snippets/common/button-story-remix-docspage.js.mdx
2021-05-07 12:11:09 +08:00

36 lines
547 B
Plaintext

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