README
antd-custom-icon
lib to make it possible to create your own lib of icons for antd, without having to import all @ ant-desing
Install
npm i antd-custom-icon
yarn add antd-custom-icon
How to use
import React from 'react';
import Icon from 'antd-custom-icon';
export const CustomIcon = ({ component, onClick, fontSize = '20px', fontColor, rest }) => (
<Icon component={component} onClick={onClick} style={{ fontSize: fontSize, color: fontColor }} {...rest} />
);