svgElement

ReactElement svgElement(

  1. String tagName, [
  2. Map<String, Object?>? props,
  3. List<ReactElement>? children
])

Creates a React element for the given SVG tag name.

Implementation

ReactElement svgElement(
  String tagName, [
  Map<String, Object?>? props,
  List<ReactElement>? children,
]) => (children != null && children.isNotEmpty)
    ? createElementWithChildren(
        tagName.toJS,
        props != null ? createProps(props) : null,
        children,
      )
    : createElement(tagName.toJS, props != null ? createProps(props) : null);