@helpfulhuman/svg-to-component
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.

Installation

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

Usage

svg2react my-graphic.svg

Options

Usage: svg2react [options] <filename>

Options:

  -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
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (5)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |