NOTE: the latest version is 3.1.0
Convenience functions for working with Svg.Svg
Svg.Svg
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
Return an element when the condition is true and an empty element otherwise.
when showLabel (text "Label")
Empty element.
Useful if need to produce an SVG element that evaluates to nothing. Example: