mbr/elm-extras/2.2.0

NOTE: the latest version is 3.1.0

Extras.Svg

Convenience functions for working with Svg.Svg

nothing : Svg msg

Empty element.

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

let
    optionalContent =
        Just (g [] [ text "hello " ])
in
Maybe.withDefault nothing optionalContent
when : Bool -> Svg msg -> Svg msg

Return an element when the condition is true and an empty element otherwise.

when showLabel (text "Label")