lattyware/elm-fontawesome/2.1.1

NOTE: the latest version is 7.2.0

FontAwesome.Icon

Rendering icons for use in HTML.

view : Icon -> Html msg

A convenience method for simply rendering the icon.

If you want to add a class, make sure to use Svg.Attributes.class not Html.Attributes.class.

viewStyled : List (Attribute msg) -> Icon -> Html msg

A convenience method for simply rendering the icon with some additional styles.

If you want to add a class, make sure to use Svg.Attributes.class not Html.Attributes.class.

viewTransformed : List (Attribute msg) -> List Transform -> Icon -> Html msg

Render the icon with some transforms. Also takes additional attributes to be applied to the SVG node, should you wish to supply any.

If you want to add a class, make sure to use Svg.Attributes.class not Html.Attributes.class.

List (Attribute msg)
-> List Transform
-> Maybe Icon
-> Icon
-> Html msg

Render one icon as a mask over the other - this means that the inner icon (given second) is cut out of the outer icon. The big difference between this and layering is that the background can show through, as the cut out icon becomes a truly transparent area (not just the same color as the background).

If you want to add a class, make sure to use Svg.Attributes.class not Html.Attributes.class.

type alias Icon =
{ prefix : String
, name : String
, width : Int
, height : Int
, path : String
}

The definition of an icon.