This module ensures that every icon package on package.elm-lang.org is supported.
Just look for the function with the name of the package and copy&paste the respective example.
For using lemol/ant-design-icons-elm
import Ant.Icons.Svg
import Widget.Icon exposing (Icon)
check : Widget.Icon
check =
Ant.Icons.Svg.checkOutlined
|> Widget.Icon.antDesignIconsElmFor using feathericons/elm-feather
import FeatherIcons
import Widget.Icon exposing (Icon)
check : Widget.Icon
check =
FeatherIcons.check
|> Widget.Icon.elmFeather FeatherIcons.toHtmlFor using lattyware/elm-fontawesome
import FontAwesome.Icon
import FontAwesome.Solid
import FontAwesome.Svg
import Widget.Icon exposing (Icon)
check : Widget.Icon
check =
FontAwesome.Solid.check
|> Widget.Icon.elmFontawesome FontAwesome.Svg.viewIconFor using jasonliang-dev/elm-heroicons
import Heroicons.Solid
import Widget.Icon exposing (Icon)
check : Widget.Icon
check =
Heroicons.Solid.check
|> Widget.Icon.elmHeroiconsFor using j-panasiuk/elm-ionicons
import Ionicon
import Widget.Icon exposing (Icon)
check : Widget.Icon
check =
Ionicon.checkmark
|> Widget.Icon.elmIoniconsFor using icidasset/elm-material-icons
import Material.Icons exposing (offline_bolt)
import Material.Icons.Types exposing (Coloring(..))
import Widget.Icon exposing (Icon)
check : Widget.Icon
check =
Material.Icons.done
|> Widget.Icon.elmMaterialIcons ColorFor using capitalist/elm-octicons
import Octicons
import Widget.Icon exposing (Icon)
check : Widget.Icon
check =
Octicons.check
|> Widget.Icon.elmOcticons
{ withSize = Octicons.size
, withColor = Octicons.color
, defaultOptions = Octicons.defaultOptions
}For using pehota/elm-zondicons
import Widget.Icon exposing (Icon)
import Zondicons
check : Widget.Icon
check =
Zondicons.checkmark
|> Widget.Icon.elmZondiconsFor using danmarcab/material-icons
import Material.Icons.Action
import Widget.Icon exposing (Icon)
check : Widget.Icon
check =
Material.Icons.Action.done
|> Widget.Icon.materialIcons