mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
428 B
428 B
order | title | ||||
---|---|---|---|---|---|
4 |
|
zh-CN
使用 icon
自定义提示 icon
。
en-US
Set icon
props to customize the icon.
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,
);