storybook/docs/snippets/common/storybook-addon-backgrounds-configure-backgrounds.mdx.mdx
2021-10-14 23:26:05 +01:00

21 lines
361 B
Plaintext

```md
<!-- Button.stories.mdx -->
import { Meta } from '@storybook/addon-docs';
import { Button } from './Button';
<Meta
title="Button"
parameters={{
backgrounds: {
default: 'twitter',
values: [
{ name: 'twitter', value: '#00aced' },
{ name: 'facebook', value: '#3b5998' },
],
},
}}
component={Button}
/>
```