ant-design/components/popconfirm/demo/icon.md

29 lines
428 B
Markdown
Raw Normal View History

2018-07-06 23:48:37 +08:00
---
order: 4
title:
zh-CN: 自定义 Icon 图标
en-US: Customize icon
---
## zh-CN
使用 `icon` 自定义提示 `icon`
## en-US
Set `icon` props to customize the icon.
2019-05-07 14:57:32 +08:00
```jsx
2018-07-06 23:48:37 +08:00
import { Popconfirm, Icon } from 'antd';
ReactDOM.render(
2019-05-07 14:57:32 +08:00
<Popconfirm
title="Are you sure"
icon={<Icon type="question-circle-o" style={{ color: 'red' }} />}
>
2018-07-06 23:48:37 +08:00
<a href="#">Delete</a>
</Popconfirm>,
2019-05-07 14:57:32 +08:00
mountNode,
2018-11-28 15:00:03 +08:00
);
2019-05-07 14:57:32 +08:00
```