storybook/docs/snippets/react/button-story-with-blue-args.js.mdx
2020-10-07 12:23:34 +08:00

21 lines
348 B
Plaintext

```js
// Button.stories.js
import React from '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', },
]
}
}
}
```