@gibme/fontawesome
    Preparing search index...

    Variable defaultConst

    default: {
        createButton: (
            icon: string | string[],
            iconOptions?: Partial<FontAwesome.Button.Options>,
        ) => HTMLButtonElement;
        createIcon: (
            icon: string | string[],
            options?: Partial<FontAwesome.Icon.Options>,
        ) => HTMLElement;
    } = ...

    Type Declaration

    • createButton: (
          icon: string | string[],
          iconOptions?: Partial<FontAwesome.Button.Options>,
      ) => HTMLButtonElement

      Creates a button with a fontawesome icon inside

    • createIcon: (
          icon: string | string[],
          options?: Partial<FontAwesome.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']