• Create an HTML element for a FontAwesome icon

    Parameters

    • glyph: string

      A FontAwesome glyph name, such as "file" or "user"

    • Optionaloptions: {
          classes?: string[];
          fixedWidth?: boolean;
          style?: "solid" | "regular" | "duotone";
      } = {}

      Additional options to configure the icon

      • Optionalclasses?: string[]

        Additional classes to append to the class list

      • OptionalfixedWidth?: boolean

        Should icon be fixed-width?

      • Optionalstyle?: "solid" | "regular" | "duotone"

        The style name for the icon

    Returns HTMLElement

    The configured FontAwesome icon element