mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 21:18:01 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
26 lines
442 B
Markdown
26 lines
442 B
Markdown
---
|
||
order: 4
|
||
title:
|
||
zh-CN: 自定义 Icon 图标
|
||
en-US: Customize icon
|
||
---
|
||
|
||
## zh-CN
|
||
|
||
自定义提示 `icon`。
|
||
|
||
## en-US
|
||
|
||
Set `icon` props to customize the icon.
|
||
|
||
```jsx
|
||
import { Popconfirm } from 'antd';
|
||
import { QuestionCircleOutlined } from '@ant-design/icons';
|
||
|
||
export default () => (
|
||
<Popconfirm title="Are you sure?" icon={<QuestionCircleOutlined style={{ color: 'red' }} />}>
|
||
<a href="#">Delete</a>
|
||
</Popconfirm>
|
||
);
|
||
```
|