bind-icon-example
v1.0.0-beta.1
Published
Biofarma Web Icon is a React icon library that uses IconPark originally developed by Bytedance Inc and custom icons.
Readme
Introduction
Biofarma Web Icon is a React icon library that uses IconPark originally developed by Bytedance Inc and custom icons.
Pre-requisite
To run the project, you need to install the following:
- Node.js (v22.11.0)
- yarn (v1.22.19)
How to run
To run the project, you need to install the dependencies by running the following command in the terminal:
yarn --frozen-lockfileAfter that, you can build the project by running the following command in the terminal:
yarn compiler
yarn build:prepareHow to add a new icon
To add a new icon, you need to follow these steps:
- download icon as svg file
- group the icons in a folder by category
- place the folder in
source/folder - edit
source/db.csvto add the new icon - run
yarn compilerto generate the icon files - copy content of
lib/src/index.tstolib/src/map.ts - run
yarn build:prepareto generate the component icon files
Open Source Attributions
This project uses IconPark, originally developed by Bytedance Inc. IconPark is licensed under the Apache License, Version 2.0. Original source: https://github.com/bytedance/IconPark
