mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
b9a6b7b578
* demo: update demo * add form * clear * add Select * add * fix style * fix style * fix * revert
23 lines
523 B
TypeScript
23 lines
523 B
TypeScript
import { Button, Popover, Space } from 'antd';
|
|
import React from 'react';
|
|
|
|
const content = (
|
|
<>
|
|
<p>Content</p>
|
|
<p>Content</p>
|
|
</>
|
|
);
|
|
|
|
const App: React.FC = () => (
|
|
<Space wrap>
|
|
<Popover placement="topLeft" title="Title" content={content}>
|
|
<Button>Align edge / 边缘对齐</Button>
|
|
</Popover>
|
|
<Popover placement="topLeft" title="Title" content={content} arrowPointAtCenter>
|
|
<Button>Arrow points to center / 箭头指向中心</Button>
|
|
</Popover>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|