0

I'll be getting a different SVG depending on some conditions. So, I can't get the SVG code, the server carries the svg files.

So is there any way to achieve this? I need to change the color dynamically, of whichever svg I get. This is the code I have

<svg > <img src="rect.svg"width= "150px" height="150px"> </svg>

  • I dont thinks that's a valid svg. Do you have a sample output ? And specificly where the content will be dynamic ? – Duc Hong Dec 30 '19 at 06:50

1 Answers1

0
fill: currentColor; 

or

fill: red; // Any other color