File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
<script >
2
2
import { onMount } from ' svelte' ;
3
3
4
- /** @type {{ onclose?: () => void; children? : import('svelte').Snippet }} */
5
- let { onclose } = $props ();
4
+ /** @type {{ onclose?: () => void; children: import('svelte').Snippet }} */
5
+ let { onclose, children } = $props ();
6
6
7
7
/** @type {HTMLDialogElement} */
8
8
let modal;
45
45
< div class = " modal-background" / >
46
46
47
47
< dialog class = " modal" tabindex= " -1" bind: this = {modal} {onclose}>
48
- < slot / >
48
+ {@render children ()}
49
49
< / dialog>
50
50
51
51
< style>
Original file line number Diff line number Diff line change 8
8
import ' @sveltejs/site-kit/styles/index.css' ;
9
9
import ' ../app.css' ;
10
10
11
- let { data } = $props ();
11
+ let { data, children } = $props ();
12
12
</script >
13
13
14
14
<Shell >
46
46
</svelte:fragment >
47
47
</Nav >
48
48
49
- < slot />
49
+ {@ render children ()}
50
50
</Shell >
51
51
52
52
{#if browser }
You can’t perform that action at this time.
0 commit comments