storybook/docs/snippets/svelte/simple-page-implementation.js.mdx
2022-11-17 16:33:22 +01:00

21 lines
432 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>
```