Skip to content

Vizel API / core/src / getVizelIconId

Function: getVizelIconId()

ts
function getVizelIconId(name, customIcons?): string;

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

Get the Iconify icon ID for a given icon name.

Parameters

ParameterTypeDescription
nameVizelIconNameThe semantic icon name
customIcons?Partial<Record<VizelIconName, string>>Optional custom icon mappings to override defaults

Returns

string

The Iconify icon ID (e.g., "lucide:heading-1")

Released under the MIT License.