ant-design/components/popover/demo/wireframe.tsx
MadCcc 7b3adcb5ae
fix: wireframe style for popconfirm (#39313)
* fix: wireframe style for popconfirm

* chore: add demos
2022-12-06 23:14:30 +08:00

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;