mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
26 lines
549 B
TypeScript
26 lines
549 B
TypeScript
|
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;
|