> A library to generate reusable React Icon components from raw SVG icons
npm install svg2react-icon-patchbash
npm install --save-dev svg2react-icon
`
Sample usage
In your package.json:
`js
{
"scripts": {
"build": "svg2react-icon [options] ",
...
}
}
`
Or in the command-line:
`console
svg2react-icon [options]
`
Options:
`console
--typescript generate TypeScript components instead of JS
--monochrome strip all fill and stroke attributes
--named-export use named export instead of export default
``