1.0.2 • Published 3 years ago

antd-custom-icon v1.0.2

Weekly downloads
9
License
ISC
Repository
github
Last release
3 years ago

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} />
);
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago