storybook/docs/snippets/react/page-story.js.mdx
2022-07-07 19:47:29 +01:00

23 lines
471 B
Plaintext

```js
// Page.stories.js|jsx
import { Page } from './Page';
//👇 Imports all Header stories
import * as HeaderStories from './Header.stories';
export default {
/* 👇 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 const LoggedIn = {
args: {
...HeaderStories.LoggedIn.args,
},
};
```