<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`addIcon`](addIcon) ## addIcon() function Adds an icon to the library. **Signature:** ```typescript export function addIcon(iconId: string, svgContent: string): void; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>iconId</code> | <code>string</code> | the icon ID | | <code>svgContent</code> | <code>string</code> | the content of the SVG. | **Returns:** `void`