![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | build/ | 2 years ago | - | |
![]() | dist/ | 2 years ago | - | |
![]() | src/ | 2 years ago | - | |
![]() | README.md | 39 years ago | 1.3K | |
![]() | babel.config.js | 39 years ago | 463 | |
![]() | package.json | 2 years ago | 4.5K |
Using yarn
yarn add @buffetjs/icons
# Install the required dependencies
yarn add prop-types react styled-components
or npm
npm install @buffetjs/icons --save
# Install the required dependencies
npm install prop-types react styled-components --save
In order to add a new icon, you can design your svg using Sketch or another design toolkit.
Then you need to clean your svg:
npm install -g svgo
svgo my-svg.svg
Finally transform the cleaned svg to a React Component.
build/index.js
file