ant-design/components/popconfirm/demo/icon.tsx
afc163 74d5718ee7
demo: update popconfirm demo (#42429)
* demo: update popconfirm demo

* demo: update snapshot
2023-05-17 12:00:49 +08:00

16 lines
397 B
TypeScript

import { QuestionCircleOutlined } from '@ant-design/icons';
import { Button, Popconfirm } from 'antd';
import React from 'react';
const App: React.FC = () => (
<Popconfirm
title="Delete the task"
description="Are you sure to delete this task?"
icon={<QuestionCircleOutlined style={{ color: 'red' }} />}
>
<Button danger>Delete</Button>
</Popconfirm>
);
export default App;