Skip to content

registerHeroIcon

registerHeroIcon(iconName, variant?): string

Defined in: src/render/heroicons.ts:90

Lazily registers a heroicon in the global icon registry. The SVG file is read from disk only on the first call for a given name+variant. Subsequent calls for the same key are no-ops.

string

HeroIconVariant = "solid"

string