Module sauron_core::svg

source ·
Expand description

Provides functions and macros to build svg elements

Re-exports

Modules

  • provides functions and macros for building svg attributes
  • Provides macro for creating functions for tags

Constants

  • SVG namespace const, use this when creating an svg element dynamically in the DOM

Functions

  • create a virtual node with tag, attrs and children
  • create a virtual node with namespace, tag, attrs and children
  • creates an svg element with the tag, attributes and children. Example: