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

21 lines
439 B
Plaintext

```ts
// Page.stories.tsx
import React from 'react';
import { Story, Meta } from '@storybook/react/types-6-0';
import { Page, PageProps } from './Page';
import * as HeaderStories from './Header.stories';
export default {
title: 'Page',
component: Page,
} as Meta;
const Template: Story<PageProps> = (args) => <Page {...args} />;
export const LoggedIn = Template.bind({});
LoggedIn.args = {
...HeaderStories.LoggedIn.args,
};
```