mirror of https://github.com/sveltejs/svelte
parent
3e2cd3609a
commit
d996519105
@ -1,9 +1,11 @@
|
||||
<script>
|
||||
let { children, foo } = $props();
|
||||
let { children, foo_1, dashed_name } = $props();
|
||||
</script>
|
||||
|
||||
<button>{@render children?.()}</button>
|
||||
|
||||
{#if foo}
|
||||
{@render foo?.({ foo, })}
|
||||
{/if}
|
||||
{@render foo_1?.({ foo, })}
|
||||
{/if}
|
||||
|
||||
{@render dashed_name?.()}
|
||||
Loading…
Reference in new issue