storybook/docs/snippets/svelte/button-story-with-blue-args.native-format.mdx
2021-05-06 17:36:21 +01:00

23 lines
417 B
Plaintext

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