Put some colour on your PNG Icons.
npm install react-icon-tint
npm install --save react-icon-tint
``js
import React from 'react';
import ReactDOM from 'react-dom';
import IconTint from 'react-icon-tint';const MyComponent = () => {
return (
);
}
`Props
- src - {String} – required – Image source.
- color - {String} – required – Color you want to tint your icon.
- maxWidth - {Number} && maxHeight - {Number} – maxWidth + maxHeight for the icon, should be provided in pairs.
- fallback - {ReactComponent}` – Fallback component used during the load period and on SSR;