Quickly generate React components out of SVG files.
npm install @helpfulhuman/svg-to-componentThis is a command line tool for quickly generate React components from SVG files with customizable attributes (as props). Support for Preact and other component-based frameworks will be made available soon.
``bash`
npm i -g @helpfulhuman/svg-to-component
`bash`
svg2react my-graphic.svg
`bash
Usage: svg2react [options]
Options:
-V, --version output the version number
-n, --componentName
-o, --output
-t, --typescript output as a Typescript .tsx file
-h, --help output usage information
``