storybook/docs/snippets/svelte/button-story-with-blue-args.native-format.mdx
2022-11-17 16:33:22 +01:00

14 lines
422 B
Plaintext

```html
<!-- Button.stories.svelte-->
<script>
import { Meta, Template, Story } from '@storybook/addon-svelte-csf';
import Button from './Button.svelte';
</script>
<!-- 👇 Creates specific parameters for the story -->
<Meta title="Button" component={Button} parameters={{ backgrounds: { values: [ { name: 'red', value:
'#f00', }, { name: 'green', value: '#0f0', }, { name: 'blue', value: '#00f', }, ] } }} />
```