storybook/docs/snippets/react/page-story.ts.mdx
2022-11-17 16:32:02 +01:00

29 lines
612 B
Plaintext

```tsx
// Page.stories.ts|tsx
import type { Meta, StoryObj } from '@storybook/react';
import { Page } from './Page';
//👇 Imports all Header stories
import * as HeaderStories from './Header.stories';
const meta: Meta<typeof Page> = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Page',
component: Page,
};
export default meta;
type Story = StoryObj<typeof Page>;
export const LoggedIn: Story = {
args: {
...HeaderStories.LoggedIn.args,
},
};
```