react-svgicon
React component for rendering inline SVGs via an SVG sprite.
Installation
$ npm install react-svgicon --save
Usage
var Icon = ; var Example = React;
Note: This library assumes you have already loaded your SVG sprite at
the top of your <body>
element like this:
<!-- SVG path/polygon code here --> <!-- rest of code -->
Contributing
- Fork it
- Create a feature branch$ git checkout -b my-feature-branch
- Create a pull request
Development
Building the example code:
$ npm run build:example
Compiling the src
:
$ npm run prepublish
Run the specs:
$ npm test