@hitachivantara/uikit-react-icons
Version:
NEXT Design System icons packaged as a set of React components.
30 lines (21 loc) • 783 B
Markdown
# @hitachivantara/uikit-react-icons
NEXT Design System icons packaged as a set of React components.
## Installation
Install the package in your project directory with:
```sh
npm install @hitachivantara/uikit-react-icons
```
## Adding New Icons
1. Copy the `.svg` to the `assets` directory.
2. Run `npm run optimize` to optimize the icons (using `svgo`).
3. Run `npm run convert` to convert the SVGs to React components.
4. Run `npm run build` to build the package.
## File structure
```sh
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
```