README
react-gillicons
A React library that permits to use all the icons from the gillicons package thanks to a uniq component.
Icons
See gillicons.gillianperard.com.
Installation
npm install gillicons react-gillicons --save
# or
yarn add gillicons react-gillicons
How to use it
To use the gillicon component, you need to import the icons you want (from the gillicons package):
import { giPlus } from 'gillicons/giPlus';
Or using destructuring:
import { giPlus } from 'gillicons';
Then you need need to import the gillicon component:
import Gillicon from 'react-gillicon'
Finally write in jsx/tsx
:
<Gillicon
className="class-you-want"
icon={giPlus}
onClick={doSomething}
style={...} />
License
This library is released under the terms of the MIT License.