storybook/docs/snippets/svelte/page-story.js.mdx
2021-11-09 01:41:54 +00:00

27 lines
551 B
Plaintext

```js
// Page.stories.js
import Page from './Page.svelte';
//👇 Imports all Header stories
import * as HeaderStories from './Header.stories';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/svelte/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Page',
component: Page,
};
const Template = (args) => ({
Component: Page,
props: args,
});
export const LoggedIn = Template.bind({});
LoggedIn.args = {
...HeaderStories.LoggedIn.args,
};
```