[Solved] Best way to create an icon inside a component
I feel like I must be missing something, but I’m wondering what the best way to create an icon inside a component is - i.e. an icon that I configure differently for each instance. I want to be able to adjust the icon and its color in each instance.
If I use a font-based icon then it works nicely, but doesn’t do well when you move to a device that doesn’t have the right font.
If I use an SVG icon it looks great and I can change the colour very nicely, but there seems to be no way to change the icon itself in each instance (I can change the color in each instance).
If I use a PNG icon it looks OK, but the problem is reversed – I can easily change the icon, but I cannot change its color.
Am I overlooking something? It feels like this should be. very common need.