@helpfulhuman/svg-to-component
v1.0.0
Published
Quickly generate React components out of SVG files.
Downloads
1
Readme
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