mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
18 lines
301 B
TypeScript
18 lines
301 B
TypeScript
|
import React from 'react';
|
||
|
import { Button, Popover } from 'antd';
|
||
|
|
||
|
const content = (
|
||
|
<div>
|
||
|
<p>Content</p>
|
||
|
<p>Content</p>
|
||
|
</div>
|
||
|
);
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Popover content={content} title="Title">
|
||
|
<Button type="primary">Hover me</Button>
|
||
|
</Popover>
|
||
|
);
|
||
|
|
||
|
export default App;
|