Skip to main content

getIcon

@spartanfx/react v1.2.2


@spartanfx/react / index / getIcon

Function: getIcon()

function getIcon(name): SpartanIconDefinition;

Look up an icon definition by name.

Parameters

name

string

An icon name. Accepts any string for ergonomics at call sites that pass through Fluent-style iconName values; returns undefined when the name is not in the registry so callers can fall back gracefully. *

Returns

SpartanIconDefinition