mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
23 lines
544 B
Plaintext
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,
|
|
},
|
|
};
|
|
```
|