mbr / elm-extras / Extras.Html

Convenience functions for working with Html.Html

nothing : Html msg

Empty element.

Useful if need to produce an HTML element that evaluates to nothing. Example:

let
    optionalContent =
        Just (div [] [ text "hello " ])
in
Maybe.withDefault nothing optionalContent