svg Component Reference

Table of Contents


Introduction

Syntax

tml`<svg ...>...</svg>`

The svg component creates a DOM <span> element with the innerHTML set to the svg template converted into a string. This bypasses the normal component build process for the children allowing the special SVG child tags to be interpreted by the browser.

Attributes

Children

The svg component accepts all children.

DOM element properties