mirror of https://github.com/sveltejs/svelte
parent
46dcfca36f
commit
9be0fdd753
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
let { children, named } = $props();
|
||||
</script>
|
||||
|
||||
<p>{@render children()}</p>
|
||||
{@render named({foo: 'foo'})}
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<p>Default</p> <p slot="named">Named foo</p>`
|
||||
});
|
@ -0,0 +1,8 @@
|
||||
<script>
|
||||
import Child from './Child.svelte';
|
||||
</script>
|
||||
|
||||
<Child>
|
||||
Default
|
||||
<p slot="named" let:foo>Named {foo}</p>
|
||||
</Child>
|
Loading…
Reference in new issue