@helpfulhuman/svg-to-component

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i @helpfulhuman/svg-to-component

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

10.2 kB

Total Files

6

Last publish

Collaborators

  • hello-helpfulhuman
  • nickglenn
  • ckeyes88