mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 10:28:06 +08:00
26 lines
466 B
TypeScript
26 lines
466 B
TypeScript
|
import React from 'react';
|
||
|
import { Popover } from 'antd';
|
||
|
|
||
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPopover } = Popover;
|
||
|
|
||
|
const content = (
|
||
|
<div>
|
||
|
<p>Content</p>
|
||
|
<p>Content</p>
|
||
|
</div>
|
||
|
);
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<InternalPopover content={content} title="Title" />
|
||
|
<InternalPopover
|
||
|
content={content}
|
||
|
title="Title"
|
||
|
placement="bottomLeft"
|
||
|
style={{ width: 250 }}
|
||
|
/>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|