Skip to content

Vizel API / core/src / renderVizelIconSvg

Function: renderVizelIconSvg()

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

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

Render an Iconify icon as an SVG string using Lucide icons. This is the default implementation used by framework packages.

Parameters

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

Returns

string

The SVG string, or empty string if icon not found

Released under the MIT License.