Skip to content

@serenity-is/corelib / faIcon

Function: faIcon()

faIcon(key, color?): string

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.

Defined in

src/base/icons.ts:39