@serenity-is/corelib / faIcon

Function: faIcon()

faIcon(key, color?): string

Defined in: src/base/icons.ts:39

Returns the CSS class for a Font Awesome icon.

Parameters

key

faIconKey

The key of the Font Awesome icon.

color?

TextColor

The optional color of the icon.

Returns

string

The CSS class for the icon.