storybook/docs/snippets/svelte/button-story.mdx.mdx
2021-10-11 19:53:39 +01:00

23 lines
433 B
Plaintext

```md
<!-- Button.stories.mdx-->
import { Meta, Story } from '@storybook/addon-docs';
import Button from './Button.svelte';
<Meta title="Button" component={Button}/>
<!-- Render functions are a framework specific feature to allow you control on how the component renders -->
# Button
<Story
name="Primary"
render={() => ({
Component: Button,
props: {
primary: true,
label: 'Button',
},
})} />
```