Outlined
Filled Icons
Two-tone Icons
Examples
Import icons from @ant-design/icons, component name of icons with different theme is the icon name suffixed by the theme name. Specific the spin property to show spinning animation.
You can set twoToneColor prop to specific primary color for two-tone icons.
Create a reusable React component by using <Icon component= ... />. The property component takes a React component that renders to svg element.
API
Common Icon
| Property | Description | Type | Default |
|---|
className | className of Icon | string | - |
style | Style properties of icon, like fontSize and color | CSSProperties | - |
spin | Rotate icon with animation | boolean | false |
rotate | Rotate by n degrees (not working in IE9) | number | - |
twoToneColor | Only supports the two-tone icon. Specify the primary color. | string (hex color) | - |