Module

Svg.Renderer.Smolder

Package
purescript-svg-parser-smolder
Repository
rnons/purescript-svg-parser-smolder

A module to convert SvgNode to smolder Html. Normally you should only need the icon function. See demo for an example.

#svgElementToHtml Source

svgElementToHtml :: forall e. Element -> Html e

#svgNodeToHtml Source

svgNodeToHtml :: forall e. SvgNode -> Html e

Convert SvgNode to Html.

#parse Source

parse :: forall e. String -> Either String (Html e)

If you don't want to deal with the SvgNode type, you can use this function to parse a String as Html directly.

#icon Source

icon :: forall e. String -> Html e