Skip to content

@serenity-is/corelib / fabIcon

Function: fabIcon()

fabIcon(key, color?): string

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

Builds the CSS class string for a Font Awesome Brands icon.

Parameters

key

fabIconKey

Brand icon key from fabIconKey (without the fa- prefix).

color?

TextColor

Optional TextColor appended as a text-* class.

Returns

string

Class string such as "fab fa-github" or "fab fa-github text-muted".

Example

fabIcon("github"); // "fab fa-github"