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.
Parameters
Section titled “Parameters”iconName
Section titled “iconName”string
variant?
Section titled “variant?”HeroIconVariant = "solid"
Returns
Section titled “Returns”string