storybook/docs/snippets/svelte/button-story-with-blue-args.js.mdx
2021-08-28 01:52:57 +01:00

20 lines
358 B
Plaintext

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