arowM/elm-mixin/4.1.0

NOTE: the latest version is 5.3.0

Mixin.Html

Helper functions to do well with Htmls.

Core

(List (Attribute msg) -> List (Html msg) -> Html msg)
-> List (Mixin msg)
-> List (Html msg)
-> Html msg

Lift nodes to take Mixins instead of Attributes.

import Html
import Mixin.Html as Mixin


view : Html msg
view =
    Mixin.lift Html.form
        [ Mixin.class "foo"
        ]
        []

Common nodes

div : List (Mixin msg) -> List (Html msg) -> Html msg
span : List (Mixin msg) -> List (Html msg) -> Html msg