summaryrefslogtreecommitdiff
path: root/src/frontend/SvelteWrapper.svelte
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-04-15 10:55:50 -0500
committerGravatar GitHub <noreply@github.com> 2021-04-15 10:55:50 -0500
commit22ca9e0aacf26bf82aa5d0ddd6d1e1d495a1a945 (patch)
treedb56218dd905aca708e39fae6c58d31f99df24dc /src/frontend/SvelteWrapper.svelte
parentea33d7b2ab30f6434986bb0d8671e7f681076268 (diff)
downloadastro-22ca9e0aacf26bf82aa5d0ddd6d1e1d495a1a945.tar.gz
astro-22ca9e0aacf26bf82aa5d0ddd6d1e1d495a1a945.tar.zst
astro-22ca9e0aacf26bf82aa5d0ddd6d1e1d495a1a945.zip
Support children inside of components (#72)
* chore(examples): add kitchen-sink * feat: support children in rendered components * feat: add support for rendering children in Svelte * fix: cleanup p/react fragment children * chore: add @ts-nocheck to svelte files * chore: update lockfiles * fix: types * feat: memoize frontend/renderer/utils * fix: disable eslint for compiled SvelteWrapper * fix: add missing dep Co-authored-by: Nate Moore <nate@skypack.dev>
Diffstat (limited to 'src/frontend/SvelteWrapper.svelte')
-rw-r--r--src/frontend/SvelteWrapper.svelte7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/frontend/SvelteWrapper.svelte b/src/frontend/SvelteWrapper.svelte
new file mode 100644
index 000000000..eb4cbb7d9
--- /dev/null
+++ b/src/frontend/SvelteWrapper.svelte
@@ -0,0 +1,7 @@
+<script>
+const { __astro_component: Component, __astro_children, ...props } = $$props;
+</script>
+
+<Component {...props}>
+ {@html __astro_children}
+</Component>