1.0.0-beta.2 • Published 5 years ago

@rogal/react-builder-svg-icons v1.0.0-beta.2

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

react-builder-svg-icons

Converts your SVG files into React Components

Features:

  • Cli to automate the building of svg to React Components
  • It gives us an Icon React Component
  • It generates constants dynamically

Installation

$ npm i --save-dev @rogal/react-builder-svg-icons

Usage

You only need to add the icon to svg folder

Expected folder structure

A svg folder with all the .svg files to be converted inside

Output

A dist folder with the generated components will be created/overridden

Template

Check out the component template in order to check its features here