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