jabaraster/elm-views/1.1.0

NOTE: the latest version is 4.0.1

Jabara.Views

This module provides some views.

Font Awesome Icon.

fas : String -> String -> Html msg

Font Awesome Icon with class attributes. Please refer Font Awesome css from html file.

button [] [ fas "class-button-icon" "sync" ]
fas_ : String -> Html msg

Font Awesome Icon without class attributes. Please refer Font Awesome css from html file.

div [] [ input [] [], fas_ "sync" ]
fasCheck : Bool -> String -> Maybe msg -> Html msg

A little cool checkbox by Font Awesome Icon. Please refer Font Awesome css from html file.

View only:
    fasCheck True "Alwaiy Checked" Nothing


With action:
    fasCheck True "Alwaiy Checked" (Just SomeMessage)