Package Exports
- @buffetjs/icons
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@buffetjs/icons) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Buffet.js Icons
Getting Started
Installation
Using yarn
yarn add @buffetjs/icons
# Install the required dependencies
yarn add lodash prop-types react react-dom react-router-dom styled-componentsor npm
npm install @buffetjs/icons --save
# Install the required dependencies
npm install lodash prop-types react react-dom react-router-dom styled-components --saveContributing
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.svgFinally transform the cleaned svg to a React Component.