mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
13 lines
374 B
TypeScript
13 lines
374 B
TypeScript
|
import React from 'react';
|
||
|
import { QRCode, Popover } from 'antd';
|
||
|
|
||
|
const src = 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Popover overlayInnerStyle={{ padding: 0 }} content={<QRCode value={src} bordered={false} />}>
|
||
|
<img width={100} height={100} src={src} alt="icon" />
|
||
|
</Popover>
|
||
|
);
|
||
|
|
||
|
export default App;
|