storybook/docs/snippets/react/page-story.js.mdx
2020-10-07 12:23:34 +08:00

19 lines
342 B
Plaintext

```js
// Page.stories.js
import React from 'react';
import { Page } from './Page';
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,
};
```