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

36 lines
568 B
Plaintext

```js
// Button.stories.js | Button.stories.jsx
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 />
</>
),
},
},
};
```