mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 16:39:41 +08:00
25 lines
417 B
Markdown
25 lines
417 B
Markdown
---
|
||
order: 4
|
||
title:
|
||
zh-CN: 自定义 Icon 图标
|
||
en-US: Customize icon
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
使用 `icon` 自定义提示 `icon`。
|
||
|
||
## en-US
|
||
|
||
Set `icon` props to customize the icon.
|
||
|
||
````jsx
|
||
import { Popconfirm, Icon } from 'antd';
|
||
|
||
ReactDOM.render(
|
||
<Popconfirm title="Are you sure?" icon={<Icon type="question-circle-o" style={{ color: 'red' }} />}>
|
||
<a href="#">Delete</a>
|
||
</Popconfirm>,
|
||
mountNode);
|
||
````
|