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 iConvert Element to HTML.
#svgElementToHtmlWithAttrs Source
svgElementToHtmlWithAttrs :: forall i r p. Element -> Array (IProp r i) -> HTML p iSimilar 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 iConvert SvgNode to HTML.
- Modules
- Svg.
Parser - Svg.
Parser. Halogen