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
{{ message }}
Repository navigation
feat: support for scoped custom element registries #6638
I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
Add support for scoped registries in dist-custom-elements and elsewhere.
Describe the Use Case
Custom elements let web app developers build, share, and reuse UI components with their unique behaviors, making development easier. But when your app brings together different sets of custom elements, things can get messy, and name collisions can occur. Scoped custom element registries solve this issue!
Describe Preferred Solution
Currently the defineCustomElement() method on compiled components references the global custom element registry. Users should be able to pass references to their scoped custom registries.
Users should be able to register two custom elements with the same tag in two scoped registries on the same page.
Activity