mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-20 04:24:29 +08:00
64b905e9bd
* update icons deps * update all icon ref * fix lint * update snapshot
27 lines
450 B
Markdown
27 lines
450 B
Markdown
---
|
||
order: 4
|
||
title:
|
||
zh-CN: 自定义 Icon 图标
|
||
en-US: Customize icon
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
自定义提示 `icon`。
|
||
|
||
## en-US
|
||
|
||
Set `icon` props to customize the icon.
|
||
|
||
```jsx
|
||
import { Popconfirm } from 'antd';
|
||
import { QuestionCircleOutlined } from '@ant-design/icons';
|
||
|
||
ReactDOM.render(
|
||
<Popconfirm title="Are you sure?" icon={<QuestionCircleOutlined style={{ color: 'red' }} />}>
|
||
<a href="#">Delete</a>
|
||
</Popconfirm>,
|
||
mountNode,
|
||
);
|
||
```
|