storybook/docs/snippets/common/storybook-addon-backgrounds-configure-backgrounds.js.mdx
2021-01-28 00:11:22 +00:00

17 lines
342 B
Plaintext

```js
// Button.stories.js | Button.stories.ts
// To apply a set of backgrounds to all stories of Button:
export default {
title: 'Button',
parameters: {
backgrounds: {
default: 'twitter',
values: [
{ name: 'twitter', value: '#00aced' },
{ name: 'facebook', value: '#3b5998' },
],
},
},
};
```