mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 19:49:59 +08:00
417 B
417 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);