Variable FontAwesomeConst

FontAwesome: {
    createButton: ((icon, iconOptions?) => HTMLButtonElement);
    createIcon: ((icon, options?) => HTMLElement);
} = ...

Type declaration

  • createButton: ((icon, iconOptions?) => HTMLButtonElement)
      • (icon, iconOptions?): HTMLButtonElement
      • Creates a button with a fontawesome icon inside

        Parameters

        Returns HTMLButtonElement

  • createIcon: ((icon, options?) => HTMLElement)
      • (icon, options?): HTMLElement
      • 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