storybook/docs/snippets/react/button-story-with-blue-args.ts.mdx
2020-08-14 21:46:15 +01:00

21 lines
408 B
Plaintext

```ts
// Button.stories.tsx
import React from 'react';
import { Meta } from '@storybook/react/types-6-0';
import Button from './Button';
export default {
title: 'Button',
component: Button,
parameters: {
backgrounds: {
values: [
{ name: 'red', value: '#f00', },
{ name: 'green', value: '#0f0', },
{ name: 'blue', value: '#00f', },
]
}
}
} as Meta;
```