@hitachivantara/uikit-react-icons
v5.9.10
Published
NEXT Design System icons packaged as a set of React components.
Downloads
13,763
Readme
@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 convert
to convert the SVGs to React components. - Run
npm run build
to build the package.
File structure
icons/
├── assets # optimized `.svg` assets
├── dist # built artifacts (by `vite build`)
├── lib # library code to be moved to `./src`
├── scripts # .svg to React component generator scripts
└── src # generated `.tsx` React icon components