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`) |
82
-
| 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)) |
83
-
| 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)). |
84
-
| 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.|
85
-
| 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`). |
86
-
| hydratable |`false`| If enabled, allows for SSR/SSG of custom elements managed by `svelte-retag` by including extra markup so that they can be initialized (or "hydrated") client-side from pre-rendered HTML. Enable this during SSR/SSG to allow for proper initialization. See [hydration demo here](https://svelte-retag.vercel.app/hydratable.html). <br><br>Note: Experimental. Compatible with light DOM rendering only. |
|`component`|_(required)_ | The constructor for your Svelte component (from`import`) |
133
+
| `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)) |
134
+
| `attributes` | `[]` | Optional. 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)). |
135
+
| `shadow` | `false` | Optional. Indicates if this component should use shadow DOM.<br/> **Note:** Only basic support for shadow DOM is currently provided. See https://github.com/patricknelson/svelte-retag/issues/6. |
136
+
| `href` | `''` | Optional. URL to your stylesheet. Allows you to ensure your styles are included in the shadow DOM. This option is only useful when `shadow` is set to `true`. |
137
+
| `hydratable` | `false` | Optional. If enabled, allows for SSR/SSG of custom elements managed by `svelte-retag` by including extra markup so that they can be initialized (or "hydrated") client-side from pre-rendered HTML. Enable this during SSR/SSG to allow for proper initialization. See [hydration demo here](https://svelte-retag.vercel.app/hydratable.html). <br><br>Note: Experimental. Compatible with light DOM rendering only. |
87
138
88
139
**Note:** For portability, `svelte-retag`'s API is fully backward compatible
89
140
with [`svelte-tag@^1.0.0`](https://github.com/crisward/svelte-tag).
90
141
91
-
## To Do
92
-
93
-
On the immediate horizon:
142
+
## Change Log
94
143
95
-
-[x]Migrate to Vitest for unit testing (see https://github.com/crisward/svelte-tag/pull/14)
96
-
-[x]Update logo
97
-
-[x]Fix nested slot support (https://github.com/patricknelson/svelte-retag/pull/5)
98
-
-[x]Better support for slots during early execution of IIFE compiled packages, i.e. use `MutationObserver` to watch
144
+
- Migrate to Vitest for unit testing (see https://github.com/crisward/svelte-tag/pull/14)
145
+
- Update logo
146
+
- Fix nested slot support (https://github.com/patricknelson/svelte-retag/pull/5)
147
+
- Better support for slots during early execution of IIFE compiled packages, i.e. use `MutationObserver` to watch
99
148
for light DOM slots during initial parsing (see https://github.com/patricknelson/svelte-retag/issues/7)
100
-
-[x]Support Lit-style lowercase props (see https://github.com/patricknelson/svelte-retag/pull/9)
101
-
-[x]Svelte 4 support (tested)
102
-
-[x]Support context (see https://github.com/patricknelson/svelte-retag/issues/10, PR
149
+
- Support Lit-style lowercase props (see https://github.com/patricknelson/svelte-retag/pull/9)
150
+
- Svelte 4 support (tested)
151
+
- Support context (see https://github.com/patricknelson/svelte-retag/issues/10, PR
103
152
at https://github.com/patricknelson/svelte-retag/pull/18)
104
-
-[x] Add demos (see https://github.com/patricknelson/svelte-retag/issues/11)
153
+
- Add demos to vercel site (see https://github.com/patricknelson/svelte-retag/issues/11)
154
+
- Add step-by-step instructions and provided a simple MVP example (https://github.com/patricknelson/svelte-retag/pull/24)
105
155
106
-
Milestones:
156
+
### Milestones:
107
157
108
158
- **v1:** ✅
109
159
- **v2:** Utilize Svelte 4's `customElement` syntax, i.e.
0 commit comments