2018-07-19 19:24:19 +08:00
---
order: 0
title:
zh-CN: 基本用法
en-US: Basic
---
## zh-CN
2019-08-13 14:07:17 +08:00
通过 `@ant-design/icons` 引用 Icon 组件,不同主题的 Icon 组件名为图标名加主题做为后缀,也可以通过设置 `spin` 属性来实现动画旋转效果。
2018-07-19 19:24:19 +08:00
## en-US
2021-05-10 16:45:02 +08:00
Import icons from `@ant-design/icons` , component name of icons with different theme is the icon name suffixed by the theme name. Specify the `spin` property to show spinning animation.
2018-07-19 19:24:19 +08:00
2019-05-07 14:57:32 +08:00
```jsx
2022-01-13 20:32:09 +08:00
import { Space } from 'antd';
2019-11-28 12:34:33 +08:00
import {
HomeOutlined,
SettingFilled,
SmileOutlined,
SyncOutlined,
LoadingOutlined,
} from '@ant-design/icons';
2018-07-19 19:24:19 +08:00
2022-04-03 23:27:45 +08:00
export default () => (
2022-01-13 20:32:09 +08:00
< Space >
2019-11-28 12:34:33 +08:00
< HomeOutlined / >
2019-08-13 14:07:17 +08:00
< SettingFilled / >
2019-11-28 12:34:33 +08:00
< SmileOutlined / >
< SyncOutlined spin / >
< SmileOutlined rotate = {180} / >
< LoadingOutlined / >
2022-04-03 23:27:45 +08:00
< / Space >
2018-07-19 19:24:19 +08:00
);
2019-05-07 14:57:32 +08:00
```