mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +08:00
27 lines
566 B
TypeScript
27 lines
566 B
TypeScript
|
import React from 'react';
|
||
|
import { Button, Popconfirm, Space } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Space>
|
||
|
<>
|
||
|
Button
|
||
|
<Button>Button</Button>
|
||
|
</>
|
||
|
Button
|
||
|
<Popconfirm title="Are you sure delete this task?" okText="Yes" cancelText="No">
|
||
|
<Button>Delete</Button>
|
||
|
</Popconfirm>
|
||
|
<Popconfirm title="Are you sure delete this task?" okText="Yes" cancelText="No">
|
||
|
<Button disabled>Delete</Button>
|
||
|
</Popconfirm>
|
||
|
{null}
|
||
|
{false}
|
||
|
{1}
|
||
|
Button
|
||
|
{null}
|
||
|
{undefined}
|
||
|
</Space>
|
||
|
);
|
||
|
|
||
|
export default App;
|