registerIcon
Registers an icon by fetching it from a URL.
Signature
registerIcon(name: string, url: string, collection: string): Promise<void> Defined in src/components/icon/icon.registry.ts:219, src/components/icon/icon.registry.ts:251, src/components/icon/icon.registry.ts:257
Parameters
- name:
stringThe unique name for the icon
- url:
stringThe URL to fetch the SVG icon from
- collection:
stringThe collection to register the icon in (default:
'default')
Returns
Promise<void>
A promise that resolves when the icon is registered