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

24 lines
465 B
Plaintext

```ts
// Page.stories.tsx
import React from 'react';
import { Story, Meta } from '@storybook/react';
import { Page, PageProps } from './Page';
//👇 Imports all Header stories
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,
};
```