Fontawesome (Fontawesome Icons v0.0.4)
Example usage:
<Fontawesome.icon icon="arrow-left" />
<Fontawesome.icon icon="icon2" style="solid" />
<Fontawesome.icon icon="another-icon" weight="sharp" />
<Fontawesome.icon icon="everything" style="thin" weight="sharp" size="2x" class="my-css-class" css="border: 1px solid red;" />
Additionally contains a list of icons.
Summary
Functions
Returns a list of all the brand icons
Style can be regular, solid, light, thin or duotone Weight defaults to nothing (classic) but can be set to sharp
Returns a list of all non-brand icons
The version of FontAwesome this was built against (for the icon lists)
Functions
brand_icons()
@spec brand_icons() :: [String.t()]
Returns a list of all the brand icons
icon(assigns)
@spec icon(map()) :: Phoenix.LiveView.Rendered.t()
Style can be regular, solid, light, thin or duotone Weight defaults to nothing (classic) but can be set to sharp
Attributes
icon(:string) (required)style(:string) - Defaults to"regular".weight(:string) - Defaults tonil.size(:string) - Defaults tonil.class(:string) - Defaults tonil.css(:string) - Defaults tonil.
standard_icons()
@spec standard_icons() :: [String.t()]
Returns a list of all non-brand icons
version()
@spec version() :: String.t()
The version of FontAwesome this was built against (for the icon lists)