storybook/docs/snippets/common/storybook-preview-global-parameters.js.mdx
2020-10-07 12:23:34 +08:00

12 lines
192 B
Plaintext

```js
// .storybook/preview.js
export const parameters = {
backgrounds: {
values: [
{ name: 'red', value: '#f00', },
{ name: 'green', value: '#0f0', },
],
},
}
```