Module
Svg.Parser.Halogen
- Package
- purescript-svg-parser-halogen
- Repository
- rnons/purescript-svg-parser-halogen
A module to convert SvgNode
to halogen HTML
. Normally you should only
need the icon
function. See demo for an example.
#svgElementToHtml Source
svgElementToHtml :: forall i p. Element -> HTML p i
Convert Element
to HTML
.
#svgElementToHtmlWithAttrs Source
svgElementToHtmlWithAttrs :: forall i r p. Element -> Array (IProp r i) -> HTML p i
Similar to svgElementToHtml
, but you can add additional attributes to it.
Useful to apply className or bind event listeners.
#svgNodeToHtml Source
svgNodeToHtml :: forall i p. SvgNode -> HTML p i
Convert SvgNode
to HTML
.
- Modules
- Svg.
Parser - Svg.
Parser. Halogen