mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 21:51:48 +08:00
20 lines
423 B
Plaintext
20 lines
423 B
Plaintext
```js
|
|
// Button.stories.js | Button.stories.jsx | Button.stories.ts | Button.stories.tsx
|
|
|
|
import { Button } from './Button';
|
|
|
|
// To apply a set of backgrounds to all stories of Button:
|
|
export default {
|
|
component: Button,
|
|
parameters: {
|
|
backgrounds: {
|
|
default: 'twitter',
|
|
values: [
|
|
{ name: 'twitter', value: '#00aced' },
|
|
{ name: 'facebook', value: '#3b5998' },
|
|
],
|
|
},
|
|
},
|
|
};
|
|
```
|