tanem / react-svg

:art: A React component that injects SVG into the DOM.

Home Page:https://npm.im/react-svg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Changing the SVG Color

proffnick opened this issue · comments

How do I programmatically change the color of the SVG? Please help <ReactSVG color="#55555" /> ????

Hi @proffnick. You can use beforeInjection to do this, please refer to the Before Injection example.

There are also CSS-in-JS and External Stylesheet examples if you want to go down that track.

Oops, reopening until I hear back or the issue becomes stale.

Thank you @tanem done!