mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
74d5718ee7
* demo: update popconfirm demo * demo: update snapshot
16 lines
397 B
TypeScript
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;
|