storybook/docs/snippets/react/button-story-component-args-primary.ts.mdx
2020-08-07 17:05:17 +01:00

20 lines
335 B
Plaintext

```ts
// Button.story.ts
import { Story, Meta } from '@storybook/react/types-6-0';
import Button from './Button';
export default {
title: "Button",
component: Button,
argTypes: {
backgroundColor: { control: 'color' },
},
args: {
// Now all Button stories will be primary.
primary: true,
},
} as Meta;
```