How to use Ant Designs Icons in Your React Application DEV Community
Table Of Content Font-GIS Gitlab SVGs Repository files navigation Set TwoTone Color Ant Design Icons for React Install Specify the spin property to show spinning animation and the theme property to switch between different themes. The color of the icon should be consistent the color of the surrounding copy, unless the icon is being used to express state (in which case it should be colored accordingly). When using the two-tone icons, you can use the static methods getTwoToneColor() and setTwoToneColor(colorString) to specify the primary color. You can still set style and className for size and color of icons. Font-GIS If icon with a duplicate name in resources, it will overridden in array order. The property component takes a React component that renders to svg element. We still have three different themes for icons, icon component name is the icon name suffixed by the theme name. React is used to encapsulate a library of components which embody our design language. We welcome t...