SVG in Lightning Component Bundle

SVG in Lightning Component Bundle

Sample Code:


<?xml version=”1.0″?>
<!DOCTYPE svg PUBLIC “-//W3C//DTD SVG 1.1//EN”
  “http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd”>

<svg xmlns=”http://www.w3.org/2000/svg”
     width=”400″ height=”400″>
  <circle cx=”100″ cy=”100″ r=”100″ stroke=”black”
    stroke-width=”5″ fill=”red” />

</svg>


Output:


Leave a Reply