krisajenkins / elm-exts / Exts.Html.Attributes

Extensions to the Html.Attributes library.

defaultValue : Json.Encode.Value -> Html.Attribute msg

Set a default value for an input field.

defaultString : String -> Html.Attribute msg

Convenience version of defaultValue, for Strings.

defaultInt : Basics.Int -> Html.Attribute msg

Convenience version of defaultValue, for Ints.

defaultFloat : Basics.Float -> Html.Attribute msg

Convenience version of defaultValue, for Floats.

styleList : List ( String, String, Basics.Bool ) -> List (Html.Attribute msg)

This function makes it easier to specify a conditional set of styles. This the style-equivalent of elm-html's classList.