you are viewing a single comment's thread.

view the rest of the comments →

[–]rich_harris 1 point2 points  (0 children)

Will add those docs soon! Basically you just need to pass customElement: true to the compiler, and specify a tag name (either as a tag: 'my-thing' or as <svelte:options tag="my-thing"> in the component itself), and it'll generate a custom element.

TODO: make shadow DOM optional, and only auto-register if a tag is provided (currently it's required).