mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
497 B
497 B
order | title | ||||
---|---|---|---|---|---|
4 |
|
zh-CN
自定义提示 icon
。
en-US
Set icon
props to customize the icon.
import { QuestionCircleOutlined } from '@ant-design/icons';
import { Popconfirm } from 'antd';
import React from 'react';
const App: React.FC = () => (
<Popconfirm title="Are you sure?" icon={<QuestionCircleOutlined style={{ color: 'red' }} />}>
<a href="#">Delete</a>
</Popconfirm>
);
export default App;