gorangajic / react-svg-morph

:crystal_ball: morph your svg component one into another other

Home Page:http://gorangajic.github.io/react-svg-morph/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New className API

wuct opened this issue · comments

commented

Thanks for this awesome lib. I want to suggest a new className API, by which we can pass down a className to <svg />.

For example:

<MorphReplace className="foo"/>

will generate

<svg className="foo">

I would like to open a PR for this, if the API looks good to you.

Sure if you find that useful why not