mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:01:53 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
24 lines
553 B
Plaintext
24 lines
553 B
Plaintext
```js
|
|
// YourPage.stories.js|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 {
|
|
title: 'DocumentScreen',
|
|
component: DocumentScreen,
|
|
};
|
|
|
|
export const Simple = {
|
|
args: {
|
|
user: PageLayout.Simple.args.user,
|
|
document: DocumentHeader.Simple.args.document,
|
|
subdocuments: DocumentList.Simple.args.documents,
|
|
},
|
|
};
|
|
```
|