ant-design/components/qr-code/demo/Popover.tsx
2024-03-16 17:46:44 +08:00

14 lines
311 B
TypeScript

import React from 'react';
import { QRCode, Popover, Button } from 'antd';
const App: React.FC = () => (
<Popover
overlayInnerStyle={{ padding: 0 }}
content={<QRCode value="https://ant.design" bordered={false} />}
>
<Button type="primary">Hover me</Button>
</Popover>
);
export default App;