storybook/docs/snippets/svelte/simple-page-implementation.js.mdx
2021-05-07 18:07:39 +01:00

20 lines
429 B
Plaintext

```html
<!-- YourPage.svelte -->
<script>
import PageLayout from './PageLayout.svelte';
import DocumentHeader from './DocumentHeader.svelte';
import DocumentList from './DocumentList.svelte';
export let user = {};
export let document = {};
export let subdocuments = [];
</script>
<div>
<PageLayout {user}>
<DocumentHeader {document} />
<DocumentList documents={subdocuments} />
</PageLayout>
</div>
```