mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
27 lines
697 B
Plaintext
27 lines
697 B
Plaintext
```js
|
|
// YourPage.stories.js
|
|
|
|
import DocumentScreen from './DocumentScreen.svelte';
|
|
|
|
//👇 Imports the required stories
|
|
import * as PageLayoutStories from './PageLayout.stories';
|
|
import * as DocumentHeaderStories from './DocumentHeader.stories';
|
|
import * as DocumentListStories from './DocumentList.stories';
|
|
|
|
export default {
|
|
component: DocumentScreen,
|
|
title: 'DocumentScreen',
|
|
};
|
|
|
|
const Template = (args) => ({
|
|
Component: DocumentScreen,
|
|
props: args,
|
|
});
|
|
|
|
export const SimplePage = Template.bind({});
|
|
SimplePage.args = {
|
|
user: PageLayoutStories.Simple.args.user,
|
|
document: DocumentHeaderStories.Simple.args.document,
|
|
subdocuments: DocumentListStories.Simple.args.documents,
|
|
};
|
|
``` |