storybook/docs/snippets/react/page-story.js.mdx
2021-02-23 00:26:03 +00:00

22 lines
378 B
Plaintext

```js
// Page.stories.js
import React from 'react';
import { Page } from './Page';
//👇 Imports all Header stories
import * as HeaderStories from './Header.stories';
export default {
title: 'Page',
component: Page,
};
const Template = (args) => <Page {...args} />;
export const LoggedIn = Template.bind({});
LoggedIn.args = {
...HeaderStories.LoggedIn.args,
};
```