Skip to content

patricknelson/svelte-v4-custom-element-slots

Repository files navigation

svelte-v4-custom-element-slots

Demos an issue using slots with custom elements in Svelte 4 (pre-release) when no shadow root is in use.

Get started

git clone https://github.com/patricknelson/svelte-v4-custom-element-slots.git
cd svelte-v4-custom-element-slots
npm i
npm run dev

From scratch

Init base files

# select Svelte + JavaScript
npm init vite

# Install but overwrite with Svelte v4
npm i -D [email protected]

Update Svelte compiler options in vite.config.js to enable custom elements, i.e. customElement: true.

About

Demos bugs in slots for custom elements (shadow: open)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published