storybook/docs/snippets/common/component-story-custom-params.js.mdx
2021-09-03 23:31:04 +01:00

26 lines
450 B
Plaintext

```js
// Button.stories.js | Button.stories.ts | Button.stories.jsx | Button.stories.tsx
import { Button } from './Button';
export default {
component: Button,
};
export const Primary = {
args: {
primary: true,
label: 'Button',
},
parameters: {
backgrounds: {
values: [
{ name: 'red', value: '#f00' },
{ name: 'green', value: '#0f0' },
{ name: 'blue', value: '#00f' },
],
},
},
};
```