mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
fb4029c17f
Co-authored-by: star <a@qqfav.com>
16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
import React from 'react';
|
|
import { QuestionCircleOutlined } from '@ant-design/icons';
|
|
import { Button, Popconfirm } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Popconfirm
|
|
title="Delete the task"
|
|
description="Are you sure to delete this task?"
|
|
icon={<QuestionCircleOutlined style={{ color: 'red' }} />}
|
|
>
|
|
<Button type="link">Delete</Button>
|
|
</Popconfirm>
|
|
);
|
|
|
|
export default App;
|