Have ideas to improve npm?Join in the discussion! »

    antd-custom-icon
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

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

    Install

    npm i antd-custom-icon

    DownloadsWeekly Downloads

    3

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    25.7 kB

    Total Files

    17

    Last publish

    Collaborators

    • avatar