mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 15:59:38 +08:00
64b905e9bd
* update icons deps * update all icon ref * fix lint * update snapshot
450 B
450 B
order | title | ||||
---|---|---|---|---|---|
4 |
|
zh-CN
自定义提示 icon
。
en-US
Set icon
props to customize the icon.
import { Popconfirm } from 'antd';
import { QuestionCircleOutlined } from '@ant-design/icons';
ReactDOM.render(
<Popconfirm title="Are you sure?" icon={<QuestionCircleOutlined style={{ color: 'red' }} />}>
<a href="#">Delete</a>
</Popconfirm>,
mountNode,
);