You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| component |_(required)_| The constructor for your Svelte component (from `import`) |
74
-
| tagname |_(required)_| The custom element tag name to use ([must contain a dash](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements)) |
75
-
| attributes |`[]`| array - List of attributes to reactively forward to your component (does not reflect changes inside the component)|
76
-
| shadow |`false`| boolean - Should this component use shadow DOM.<br/> **Note:** Only basic support for shadow DOM is currently provided. See https://github.com/patricknelson/svelte-retag/issues/6.|
77
-
| href |`''`| link to your stylesheet - Allows you to ensure your styles are included in the shadow DOM (thus only required when `shadow` is set to `true`). |
| component |_(required)_| The constructor for your Svelte component (from `import`) |
78
+
| tagname |_(required)_| The custom element tag name to use ([must contain a dash](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements)) |
79
+
| attributes |`[]`| array - List of attributes to reactively forward to your component (does not reflect changes inside the component). <br> **Important:** Attributes must be the lowercase version of your Svelte component props ([similar to Lit](https://lit.dev/docs/components/properties/#observed-attributes)).|
80
+
| shadow |`false`| boolean - Should this component use shadow DOM.<br/> **Note:** Only basic support for shadow DOM is currently provided. See https://github.com/patricknelson/svelte-retag/issues/6.|
81
+
| href |`''`| link to your stylesheet - Allows you to ensure your styles are included in the shadow DOM (thus only required when `shadow` is set to `true`). |
78
82
79
83
**Note:** For portability, `svelte-retag`'s API is fully backward compatible
80
84
with [`svelte-tag@^1.0.0`](https://github.com/crisward/svelte-tag).
@@ -88,7 +92,7 @@ On the immediate horizon:
88
92
-[x] Fix nested slot support (https://github.com/patricknelson/svelte-retag/pull/5)
89
93
-[x] Better support for slots during early execution of IIFE compiled packages, i.e. use `MutationObserver` to watch
90
94
for light DOM slots during initial parsing (see https://github.com/patricknelson/svelte-retag/issues/7)
91
-
-[ ] ⏳ Support Lit-style lowercase props (see https://github.com/crisward/svelte-tag/issues/16)
95
+
-[x] Support Lit-style lowercase props (see https://github.com/crisward/svelte-tag/issues/16)
92
96
-[ ] Lower priority: Support context (see https://github.com/crisward/svelte-tag/issues/8)
0 commit comments