@ant-design/icons-react

    2.0.1 • Public • Published

    Ant Design Icons for React

    NPM version NPM downloads

    Install

    yarn add @ant-design/icons
    yarn add @ant-design/icons-react

    Basic Usage

    First, you should add the icons that you need into the library.

    import { AntDesignOutline, DashboardOutline, TwitterOutline } from '@ant-design/icons';
    import AntdIcon from '@ant-design/icons-react';
    AntdIcon.add(AntDesignOutline, DashboardOutline);

    After that, you can use antd icons in your React components as simply as this:

    <AntdIcon type="ant-design-o" />
    <AntdIcon type="dashboard-o" />
    <AntdIcon type={TwitterOutline} />

    Component Interface

    interface AntdIconProps {
      type: string | IconDefinition;
      className?: string;
      onClick?: React.MouseEventHandler<SVGSVGElement>;
      style?: React.CSSProperties;
    }

    Keywords

    none

    Install

    npm i @ant-design/icons-react

    DownloadsWeekly Downloads

    111,545

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    25.8 kB

    Total Files

    14

    Last publish

    Collaborators

    • madccc
    • yesmeck
    • afc163
    • vthinkxie
    • zombiej
    • chenshuai2144
    • vagusx
    • dahong
    • ycjcl868
    • wynterding
    • yutingzhao1991
    • arvinxx
    • rdmclin2
    • wendellhu95