storybook/docs/snippets/web-components/page-story-with-args-composition.ts.mdx
Kyle Gach b97d94e005 Address feedback
- Newline following filename comment
- Fix URLs in comments
- Ensure consistent usage of `ts` vs `tsx` language
2023-01-12 14:17:39 -07:00

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,
},
};
```