krisajenkins/elm-exts/28.0.0

Exts.Html.Attributes

Extensions to the Html.Attributes library.

defaultValue : Value -> Attribute msg

Set a default value for an input field.

defaultString : String -> Attribute msg

Convenience version of defaultValue, for Strings.

defaultInt : Int -> Attribute msg

Convenience version of defaultValue, for Ints.

defaultFloat : Float -> Attribute msg

Convenience version of defaultValue, for Floats.

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

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