mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
15 lines
372 B
TypeScript
15 lines
372 B
TypeScript
import React from 'react';
|
|
import { Flex, QRCode } from 'antd';
|
|
|
|
const value = 'https://ant.design';
|
|
|
|
const App: React.FC = () => (
|
|
<Flex gap="middle" wrap>
|
|
<QRCode value={value} status="loading" />
|
|
<QRCode value={value} status="expired" onRefresh={() => console.log('refresh')} />
|
|
<QRCode value={value} status="scanned" />
|
|
</Flex>
|
|
);
|
|
|
|
export default App;
|