Menu
Libraries |
Category

svelte-custom-elements

  • Purpose: The library was designed to register Svelte components as custom elements, enabling their use in non-Svelte environments or as reusable web components.
  • Status: The project is deprecated as Svelte now natively supports compiling to custom elements (since version 1.37).
  • Key Features:
    • Provided a register function to define Svelte components as custom elements.
    • Required specifying observed attributes for property binding.
  • Target Audience: Developers looking to integrate Svelte components into non-Svelte projects via custom elements (prior to native support).

Note: The library is no longer maintained due to built-in Svelte functionality. For modern usage, refer to Svelte's native custom element support.

Demo:

License: MIT

sveltewebcomponentscustomelements

Comments