ant-design/components/popconfirm/demo/icon.md
二货机器人 64b905e9bd
chore: Update @ant-design/icons deps (#19979)
* update icons deps

* update all icon ref

* fix lint

* update snapshot
2019-11-28 12:34:33 +08:00

27 lines
450 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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,
);
```