[][src]Function sauron::prelude::svg_element

pub fn svg_element<MSG>(
    tag: &'static str,
    attrs: Vec<Attribute<&'static str, &'static str, AttributeValue, Event, MSG>>,
    children: Vec<Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>>
) -> Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>

creates an svg element with the tag, attributes and children. Example:

This example is not tested
svg_element("circle", vec![cx(1.0), cy(1.0), r(1.0)], vec![]);