mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +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);