storybook/docs/snippets/svelte/button-story-component-args-primary.mdx.mdx
2021-11-03 23:31:14 +00:00

22 lines
401 B
Plaintext

```md
<!-- Button.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import Button from './Button.svelte';
<!-- 👇 Creates specific argTypes and turns all stories into primary -->
<Meta title="Button"
component={Button}
argTypes={{
backgroundColor: {
control: 'color',
},
}},
args={{
primary: true,
}}/>
<!-- Remainder story implementation -->
```