getIcon

getIcon() function

Create an SVG from an iconId. Returns null if no icon associated with the iconId.

Signature:

export function getIcon(iconId: string): SVGSVGElement | null;

Parameters

ParameterTypeDescription
iconIdstringthe icon ID

Returns:

SVGSVGElement`` | null