Skip to content

Vizel API / core/src / renderVizelIcon

Function: renderVizelIcon()

ts
function renderVizelIcon(name, options?): string;

Defined in: packages/core/src/icons/types.ts:353

Render an internal icon as an SVG string. Uses the injected renderer from framework packages.

Parameters

ParameterTypeDescription
nameVizelInternalIconNameThe internal icon name
options?VizelIconRendererOptionsOptional rendering options (width, height)

Returns

string

The SVG string, or empty string if no renderer is set

Released under the MIT License.