ant-design/components/popconfirm/demo/icon.md
2022-05-23 14:37:16 +08:00

497 B
Raw Blame History

order title
4
zh-CN en-US
自定义 Icon 图标 Customize icon

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;