Last active
September 8, 2022 14:58
-
-
Save nathansmith/4f3e93aba1990e6d39b56ae0aaeee576 to your computer and use it in GitHub Desktop.
Svelte component, to help test "slot" content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
// ====== | |
// Props. | |
// ====== | |
const { Component, slot, ...otherProps } = $$props; | |
</script> | |
<!-- | |
======= | |
Render. | |
======= | |
--> | |
<Component {...otherProps}> | |
{slot} | |
</Component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment