antd-custom-icon

lib to make it possible to create your own lib of icons for antd, without having to import all @ ant-desing

Usage no npm install needed!

<script type="module">
  import antdCustomIcon from 'https://cdn.skypack.dev/antd-custom-icon';
</script>

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