version | 1.0.0 |
license | BSD3 |
native-modules | False |
elm-version | 0.18.0 <= v < 0.19.0 |
Tag | 1.0.1 |
Committed At | 2018-08-01 03:47:33 UTC |
This package has a really easy-to-use API, with plenty of options!
It comes with a stylesheet and icons helpers:
import MaterialIcons
exposing ( stylesheet
, wrench
, accountKey
, briefcase
)
view : model -> Html msg
view _
= div []
[ stylesheet
, wrench
, accountKey
, briefcase
]
This package also has tools for making custom icons:
import MaterialIcons
exposing ( stylesheet
, i
, Icon(Wrench,AccountKey,Briefcase)
)
view : model -> Html msg
view _
= div []
[ stylesheet
, i [] Wrench
, i [] AccountKey
, i [] Briefcase
]
Some styling shortcuts are included:
stylishFish : Html Msg
stylishFish
= i [ light
, flipV
, size X48
]
Fish
The styling helpers are also included as a record:
stylishFish : Html msg
stylishFish
= i [ style
{ shade = Just Dark
, inactive = False
, size = Just X36
, flipH = True
, flipV = False
, rotation = Just Rotate135
}
]
Fish