schema-components - v3.7.0
    Preparing search index...

    Module lit/registry

    Custom Element registration for the Lit / Web Components adapter.

    The built-in <sc-*> elements are NOT registered as a side-effect of importing lit/registry.ts — consumers MUST call registerSchemaComponents explicitly. This is the established pattern for libraries that ship Custom Elements (Shoelace, Spectrum, Carbon) and is important for two reasons:

    1. Side-effect-free imports. Tree-shaking removes elements the consumer doesn't use, and the import order doesn't matter — the library never silently calls customElements.define on the consumer's behalf.
    2. Tag prefix collisions. Without prefix support, two libraries that ship <sc-string> would crash on the second customElements.define call (the browser throws a DOMException for re-registration). Passing a prefix lets the consumer namespace the elements out of conflict.

    Interfaces

    RegistrationResult

    Variables

    BUILT_IN_ELEMENTS

    Functions

    registerSchemaComponents