Function createIcon

  • Creates a Font Awesome Icon

    Note: The icon name must be specified without the fa- prefix. If the icon includes multiple names (i.e. fa-brand fa-x-twitter) the icon should be specified as either brand x-twitter or ['brand','x-twitter']

    Parameters

    • icon: string | string[]
    • options: Partial<Icon.Options> = {}

    Returns HTMLElement