@goodrequest/web-icons
v1.0.2
Published
GR SVG icons library
Readme
Web SVG icon library
This library provides a collection of web SVG icons that can be easily used in react web projects.
Installation
You can install the library via npm:
npm install @goodrequest/web-iconsUsage
To use the icons in your project, you can import them into your TypeScript files as follows:
import { IconName } from '@goodrequest/web-icons';Development
To set up the development environment and build the library:
Clone this repository:
git clone [email protected]:GoodRequest/Web-Icons.gitInstall dependencies:
npm installBuild library:
To build the library:
npm run buildHow to add a new icon?
Follow this steps
First step
add new icons to related folders in folder assets/icons
Second step
run this command
npm run svgrthen try run build
Final step
Push changes and increase the patch version
npm version patch[!WARNING] Attention, if you're adding a new folder for a new category of icons (such as generals, arrows, media, etc...), don't forget to add an export of this folder to the src/index.ts file.
The compiled library will be available in the lib directory.
License
This project is licensed under the MIT License.
