registerIcon

Registers an icon by fetching it from a URL.

Signature

registerIcon(name: string, url: string, collection: string): Promise<void>

Parameters

  • name: string

    The unique name for the icon

  • url: string

    The URL to fetch the SVG icon from

  • collection: string

    The collection to register the icon in (default: 'default')

Returns

Promise<void>

A promise that resolves when the icon is registered