react-materials-icon
🍺 Hi there, material icons for react lovers <3, Thanks...
Install
npm install --save react-materials-icon npm i material-icons
Usage
In your Index.js ( main file ) import material icon css.
//import material-icon scss;
import React Component from 'react' //import MaterialReactIcon from react-materials-iconimport MaterialReactIcon from 'react-materials-icon' { return //And use wherever you want... <MaterialReactIcon ="android" ="4" ="orange" /> }
Props
- icon: pass icon name
e.g -android
material-icons - size: pass icon size
size in rem
- color: you can give any valid value
i.e red, yellow, #fffff, #ff0000.
License
MIT © License