storybook/docs/snippets/react/page-story-with-args-composition.js.mdx
2021-09-03 23:31:04 +01:00

23 lines
544 B
Plaintext

```js
// YourPage.stories.js | YourPage.stories.jsx
import { DocumentScreen } from './YourPage';
//👇 Imports the required stories
import * as PageLayout from './PageLayout.stories';
import * as DocumentHeader from './DocumentHeader.stories';
import * as DocumentList from './DocumentList.stories';
export default {
component: DocumentScreen,
};
export const Simple = {
args: {
user: PageLayout.Simple.args.user,
document: DocumentHeader.Simple.args.document,
subdocuments: DocumentList.Simple.args.documents,
},
};
```