storybook/docs/snippets/react/button-story-with-blue-args.ts.mdx
Norbert de Langen 84a4bde3f0
FIX
2020-12-09 14:42:24 +01:00

21 lines
398 B
Plaintext

```ts
// Button.stories.tsx
import React from 'react';
import { Meta } from '@storybook/react';
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;
```