storybook/docs/snippets/svelte/simple-page-implementation.js.mdx
2021-05-06 17:36:21 +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>
```