@ant-design/icons-react

  • Version 2.0.1
  • Published
  • 25.8 kB
  • 2 dependencies
  • MIT license

Install

npm i @ant-design/icons-react
yarn add @ant-design/icons-react
pnpm add @ant-design/icons-react

Overview

<h1 align="center"> Ant Design Icons for React </h1>

Index

Classes

class Icon

class Icon extends React.Component<IconProps> {}

    property definitions

    static definitions: MiniMap<any>;

      property displayName

      static displayName: string;

        method add

        static add: (...icons: IconDefinition[]) => void;

          method clear

          static clear: () => void;

            method get

            static get: (
            key?: string,
            colors?: TwoToneColorPalette
            ) => IconDefinition | undefined;

              method getTwoToneColors

              static getTwoToneColors: () => TwoToneColorPalette;

                method render

                render: () => any;

                  method setTwoToneColors

                  static setTwoToneColors: ({
                  primaryColor,
                  secondaryColor,
                  }: TwoToneColorPaletteSetter) => void;

                    Interfaces

                    interface IconProps

                    interface IconProps {}

                      property className

                      className?: string;

                        property focusable

                        focusable?: string;

                          property onClick

                          onClick?: React.MouseEventHandler<SVGSVGElement>;

                            property primaryColor

                            primaryColor?: string;

                              property secondaryColor

                              secondaryColor?: string;

                                property style

                                style?: React.CSSProperties;

                                  property type

                                  type: string | IconDefinition;

                                    interface TwoToneColorPalette

                                    interface TwoToneColorPalette extends TwoToneColorPaletteSetter {}

                                      property secondaryColor

                                      secondaryColor: string;

                                        interface TwoToneColorPaletteSetter

                                        interface TwoToneColorPaletteSetter {}

                                          property primaryColor

                                          primaryColor: string;

                                            property secondaryColor

                                            secondaryColor?: string;

                                              Package Files (2)

                                              Dependencies (2)

                                              Dev Dependencies (19)

                                              Peer Dependencies (2)

                                              Badge

                                              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@ant-design/icons-react.

                                              • Markdown
                                                [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@ant-design/icons-react)
                                              • HTML
                                                <a href="https://www.jsdocs.io/package/@ant-design/icons-react"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>