Module
Sigil.Svg.Attrs
- Package
- purescript-sigil
- Repository
- afcondon/purescript-sigil
Shared LayoutNode → SVG attribute mapping.
Both Emit (DOM FFI) and Sigil.Hats (HATS Tree) derive from
toSvgPrimitive so attribute logic is defined once.
#SvgPrimitive Source
type SvgPrimitive = { attrs :: Array { key :: String, value :: String }, children :: Array LayoutNode, tag :: String, textContent :: Maybe String }#fontFamily Source
fontFamily :: String