@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
Brand icon key from fabIconKey (without the fa- prefix).
color?
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"