mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 13:37:52 +08:00
418 B
418 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
);