@rogal/react-svg-example-icons

1.0.0-beta.0 • Public • Published

react-svg-example-icons

Converts your SVG files into React Components

Features:

  • Every time I uploaded a svg, automatically it creates the component

Installation

$ npm i --save @rogal/react-svg-example-icons

Usage

You only need to add the icon to svg folder Then you update the package.json, the package-lock.json and the Changelog and it's done.

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

How to use the generated lib

import { Icon, IconConstants } from "@rogal/react-svg-example-icons";

const Demo = () => {
  return <Icon type={IconConstants.ARROW_LEFT} />;
};

Template

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

Readme

Keywords

none

Package Sidebar

Install

npm i @rogal/react-svg-example-icons

Weekly Downloads

0

Version

1.0.0-beta.0

License

ISC

Unpacked Size

292 kB

Total Files

15

Last publish

Collaborators

  • gabrielseco