mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
27 lines
618 B
Plaintext
27 lines
618 B
Plaintext
```ts
|
|
// YourPage.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
|
// 👇 Imports the required stories
|
|
import PageLayout from './PageLayout.stories';
|
|
import DocumentHeader from './DocumentHeader.stories';
|
|
import DocumentList from './DocumentList.stories';
|
|
|
|
const meta: Meta = {
|
|
title: 'DocumentScreen',
|
|
component: 'demo-document-screen',
|
|
};
|
|
export default meta;
|
|
|
|
type Story = StoryObj;
|
|
|
|
export const Simple: Story = {
|
|
args: {
|
|
user: PageLayout.Simple.args.user,
|
|
document: DocumentHeader.Simple.args.document,
|
|
subdocuments: DocumentList.Simple.args.documents,
|
|
},
|
|
};
|
|
```
|