Include `<slot/>` between `<svelte:head>` tags
See original GitHub issueTo allow for cleaner markup, <slot>
could be leveraged allowing for custom meta tags to be added in the component itself.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Special elements / <svelte:head> • Svelte Tutorial
The <svelte:head> element allows you to insert elements inside the <head> of your ... of <svelte:head> are returned separately from the rest of...
Read more >A comprehensive guide to Svelte components with slots
Take a deep dive into Svelte components with slots by learning how they work and how to use them to supercharge your Svelte...
Read more >svelte:head tags outside __layout not included in SSR output
The order is correct as well, since you have the <svelte:head> in the layout component before the <slot> . If you want the...
Read more >Use slot string in the script tag on Svelte - Stack Overflow
If you have this: <WrapperComponent> <span>This is child content</span> </WrapperComponent>. In React you would get <span>This is child ...
Read more >How to use slots in Svelte - Educative.io
In such a scenario, data is passed using slots to render it as an HTML tag to a specific child. The slot is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey👋, Sorry my bad. I made a mistake😔. It’s supposed to be included in the Svelte: head. I have fixed the problem☺️.
i’ve just published the version 1.3.0 which contains requested
<slot>
, so I am closing the issue. please feel free to re-open it if you find any issues.