Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding className to the <i> element #12

Open
spoldman opened this issue Sep 21, 2016 · 2 comments
Open

Adding className to the <i> element #12

spoldman opened this issue Sep 21, 2016 · 2 comments

Comments

@spoldman
Copy link

spoldman commented Sep 21, 2016

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.

@lynndylanhurley
Copy link

I can submit a PR for this if there's a chance it will get merged.

@wookieb
Copy link

wookieb commented Dec 26, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants