mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 20:20:00 +08:00
440 B
440 B
order | title | ||||
---|---|---|---|---|---|
0 |
|
zh-CN
使用 <Icon />
标签声明组件,指定图标对应的 type
属性。
en-US
Use tag <Icon />
to create an icon and set its type in the type
prop.
import { Icon } from 'antd';
ReactDOM.render(
<div>
<Icon type="home" />
<Icon type="setting" />
<Icon type="smile" />
<Icon type="reload" spin />
</div>,
mountNode
);