mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 00:49:39 +08:00
a6250a9f8a
* refactor: rename Popover token to * chore: update * chore: add depreactedToken
34 lines
621 B
TypeScript
34 lines
621 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={{
|
|
components: {
|
|
Popover: {
|
|
titleMinWidth: 40,
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<InternalPopover content={content} title="Title" />
|
|
<InternalPopover
|
|
content={content}
|
|
title="Title"
|
|
placement="bottomLeft"
|
|
style={{ width: 250 }}
|
|
/>
|
|
</ConfigProvider>
|
|
);
|
|
|
|
export default App;
|