storybook/docs/snippets/svelte/page-story-slots.native-format.mdx
2021-05-06 17:36:21 +01:00

24 lines
391 B
Plaintext

```html
<!-- Page.stories.svelte -->
<script>
import { Meta, Template, Story } from '@storybook/addon-svelte-csf';
import Page from './Page.svelte';
</script>
<Meta title="Page" component={Page} />
<Template let:args>
<Page {...args}>
<footer>{args.footer}</footer>
</Page>
</Template>
<Story
name="CustomFooter"
args={{
footer: 'Built with Storybook',
}}
/>
```