mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 05:11:49 +08:00
20 lines
382 B
Plaintext
20 lines
382 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', }} />
|
|
```
|