oko-icons
v1.0.1
Published
SVG-based React icon components
Readme
oko Icons
React projects easily with oko-icons, which utilizes ES6 imports that allows you to include only the icons that your project is using.
Installation (for standard modern project)
yarn add oko-icons
# or
npm install oko-icons --saveexample usage
import { FacebookIcon } from "oko-icons";
function Component() {
return (
<FacebookIcon />
);
}| Key | Default | Notes |
| ----------- | --------------------- | ---------------------------------- |
| color | #029F88 (inherit) | |
| size | 24px | |
| className | undefined | |
| style | undefined | Can overwrite size and color |
| attr | undefined | Overwritten by other attributes |
| title | undefined | Icon description for accessibility |
Development
Add svg files on the assets name as [name of icon]-icon.svg then run the following commands
yarn build