foo-webview-sdk
    Preparing search index...

    Function registerComponents

    • Register the fb-* elements, bound to the SDK instance that foo-webview-sdk exports.

      Idempotent: tags already present in customElements keep their existing constructor and are left out of the result. Every component uses the same SDK instance, including elements registered earlier by another call.

      Parameters

      • components: Record<string, CustomElementConstructor> = defaultComponents

        Tag names mapped to constructors. Defaults to defaultComponents; pass a subset to register only some elements.

      Returns string[]

      The tag names this call defined.

      import { registerComponents } from 'foo-webview-sdk/components';

      registerComponents();