storybook/docs/snippets/vue/button-story-with-blue-args.js.mdx
2021-02-23 00:26:03 +00:00

20 lines
384 B
Plaintext

```js
// Button.stories.js
import Button from './Button.vue';
export default {
title: 'Components/Button',
component: Button,
//👇 Creates specific parameters for the story
parameters: {
backgrounds: {
values: [
{ name: 'red', value: '#f00' },
{ name: 'green', value: '#0f0' },
{ name: 'blue', value: '#00f' },
],
},
},
};
```