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

19 lines
306 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', },
],
}
}
};
```