svg-inline-react
svg-inline-react copied to clipboard
Adding className to the <i> element
What do you think about the idea of adding a className prop so if I have multiple inline svgs on the page I can style them independently. Just an idea, don't like always have to wrap it in a div.
I can submit a PR for this if there's a chance it will get merged.
AFAIR this should work.
<InlineSVG className="some-class" .../>
Since "otherProps" are forwarded to target element https://github.com/sairion/svg-inline-react/blob/master/lib/index.js#L94