Skip to content

Commit d245579

Browse files
committed
Docs: Flagging full support for slots, since Svelte 4 may eschew use of slots in light DOM (for now), see: sveltejs/svelte#8686
1 parent 9d29969 commit d245579

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ shadow DOM. Automatically forwards all slots and attributes to your Svelte app.
1212
* 🌟 **Light DOM:** Allows you to render your Svelte 3 components as custom elements in the light DOM as usual (without
1313
requiring use of the shadow DOM). Doing so allows you to take full advantage of global styles while still maintaining
1414
encapsulation of your component specific styles, utilizing web fonts and so on.
15+
* 🎰 **Slot Support:** Supports default and named slots in the light DOM on initial page load, including nesting.
1516
* 🏃‍♂️ **Instant:** Proactively renders the Svelte component _immediately_ into the light DOM as soon as the
1617
parser encounters the custom element while dynamically re-rendering slot content as the parser moves along. This
1718
reduces CLS (Cumulative Layout Shift) and makes it interactive more quickly _without_ having to wait for the document
@@ -93,6 +94,7 @@ On the immediate horizon:
9394
- [x] Better support for slots during early execution of IIFE compiled packages, i.e. use `MutationObserver` to watch
9495
for light DOM slots during initial parsing (see https://github.com/patricknelson/svelte-retag/issues/7)
9596
- [x] Support Lit-style lowercase props (see https://github.com/patricknelson/svelte-retag/pull/9)
97+
- [ ] Add demos (see https://github.com/patricknelson/svelte-retag/issues/11)
9698
- [ ] Lower priority: Support context (see https://github.com/patricknelson/svelte-retag/issues/10)
9799

98100
Milestones:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-retag",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Light DOM custom element wrapper for Svelte 3 with Vite HMR support",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)