Quickly generate React components out of SVG files.
Last updated 2 years ago by nickglenn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @helpfulhuman/svg-to-component 
SYNC missed versions from official npm registry.

SVG to React Component

This 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.


npm i -g @helpfulhuman/svg-to-component


svg2react my-graphic.svg


Usage: svg2react [options] <filename>


  -V, --version            output the version number
  -n, --componentName <n>  the desired name for the component
  -o, --output <n>         the desired filepath for output
  -t, --typescript         output as a Typescript .tsx file
  -h, --help               output usage information

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (7)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |