https://github.com/jkmnt/react-unicons-compact
Repacked react-unicons for minimum size and fast load
https://github.com/jkmnt/react-unicons-compact
compact react unicons
Last synced: about 1 month ago
JSON representation
Repacked react-unicons for minimum size and fast load
- Host: GitHub
- URL: https://github.com/jkmnt/react-unicons-compact
- Owner: jkmnt
- License: mit
- Created: 2022-08-10T16:49:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-10T17:16:52.000Z (almost 3 years ago)
- Last Synced: 2023-12-04T18:55:35.169Z (over 1 year ago)
- Topics: compact, react, unicons
- Language: TypeScript
- Homepage:
- Size: 157 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unicons-react-compact
Repacked [react-unicons](https://github.com/Iconscout/react-unicons) for minimum size and fast loadThe original unicons-react have React components for each icon.
So you have >1000 distinct components with the same code and just the different art.Your bundle size is huge. Even gzipped and minified, browser must interpret all this code at load, slowing down the initial page render.
My repacked edition exposes just the single component with icon name being the parameter.
The icon art lives in a dictionary keyed by icon name. So no code repeats anymore.```ts
```
## How to use it ?
Just drop `unicons.ts` in you project## I need just a few icons, not the whole icon pack. Should I use your compacted edition ?
No. Use the original unicons-react