mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 22:11:37 +08:00
451d2f6ee2
* feat(popconfirm): make title bold and add description prop * feat(popconfirm): make title bold and add description prop(update demos) * feat(popconfirm): make title bold and add description prop(the update of demos translation) * feat(popconfirm): make title bold and add description prop(the update of snapshot) * feat(popconfirm): make title bold and add description prop(the update of popconfirm md) * feat(popconfirm): make title bold and add description prop(the update of popconfirm md)2 * feat(popconfirm): make title bold and add description prop(run all test.ts.snaps and update popconfirm)
16 lines
381 B
TypeScript
16 lines
381 B
TypeScript
import React from 'react';
|
|
import { QuestionCircleOutlined } from '@ant-design/icons';
|
|
import { 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' }} />}
|
|
>
|
|
<a href="#">Delete</a>
|
|
</Popconfirm>
|
|
);
|
|
|
|
export default App;
|