1.0.0 • Published 6 years ago

@helpfulhuman/svg-to-component v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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