Purescript Halogen Handling SVG

583 views Asked by At

Is there an accessible way to utilize svg elements in purescript halogen? I'm trying to draw a dynamic, clickable, graph within an <svg>, but the only reference I can find to svg is in Halogen.Themes.Bootstrap, which seems to be more concerned with css themeing.

1

There are 1 answers

0
gb. On BEST ANSWER

Halogen doesn't provide a module for SVG elements, but you can construct your own elements in the appropriate namespace. If you're using the currently tagged release version (v0.12.0), then these you can use the Element constructor from Halogen.HTML.Core: https://pursuit.purescript.org/packages/purescript-halogen/0.12.0/docs/Halogen.HTML.Core#t:HTML