UMD Web Components Library
    Preparing search index...

    Function createCustomElement

    • Factory function to create a custom element class.

      Parameters

      • config: Model.ComponentConfig

        Component configuration including tagName, slots, attributes, and lifecycle hooks

      Returns typeof BaseComponent

      Custom element class that extends BaseComponent

      export default () => {
      Register.registerWebComponent({
      name: tagName,
      element: createCustomElement({
      tagName,
      slots,
      attributes,
      createComponent
      })
      });
      };