You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
549 B
26 lines
549 B
2 years ago
|
import React from 'react';
|
||
|
import { ConfigProvider, Popover } from 'antd';
|
||
|
|
||
|
const { _InternalPanelDoNotUseOrYouWillBeFired: InternalPopover } = Popover;
|
||
|
|
||
|
const content = (
|
||
|
<div>
|
||
|
<p>Content</p>
|
||
|
<p>Content</p>
|
||
|
</div>
|
||
|
);
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<ConfigProvider theme={{ token: { wireframe: true } }}>
|
||
|
<InternalPopover content={content} title="Title" />
|
||
|
<InternalPopover
|
||
|
content={content}
|
||
|
title="Title"
|
||
|
placement="bottomLeft"
|
||
|
style={{ width: 250 }}
|
||
|
/>
|
||
|
</ConfigProvider>
|
||
|
);
|
||
|
|
||
|
export default App;
|