-
I have tailwind on my svelte 5 website, and had this in my +layout.svelte before <script>
import "../app.css";
</script>
<slot /> and since I have upgraded to svelte 5, I now have this <script>
import "../app.css";
let { children } = $props();
</script>
{@render children()} Is the implementation correct? I have looked at the docs but couldn't find anything about the +layout.svelte. |
Beta Was this translation helpful? Give feedback.
Answered by
brunnerh
Jul 17, 2024
Replies: 2 comments 2 replies
-
Looks correct. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
realguse
-
just to clarify @brunnerh, i dont need to do ANYTHING different in my other files, for example +page.svelte etc. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks correct.
children
is implicitly created from component contents.