@hitachivantara/uikit-react-icons
NEXT Design System icons packaged as a set of React components.
Installation
Install the package in your project directory with:
npm install @hitachivantara/uikit-react-icons
Adding New Icons
- Copy the
.svg
to theassets
directory. - Run
npm run optimize
to optimize the icons (usingsvgo
). - Run
npm run build
to convert the SVGs to React components & build the package.
File structure
icons/
├── assets # optimized `.svg` assets
├── bin # `.tsx` icon components
├── dist # built artifacts (by `vite build`)
└── src # .svg to React component generator scripts
└── lib # library code to be moved to `./bin`