ant-design/components/qr-code/demo/status.tsx
二货爱吃白萝卜 5bf08faeea
refactor: rename qrcode to qr-code (#43607)
* refactor: rename qrcode to qr-code

* test: patch test case

* chore: fix Form missing displayName

* chore: patch displayName

* chore: style path

* chore: fix compile
2023-07-17 23:43:32 +08:00

12 lines
307 B
TypeScript

import React from 'react';
import { QRCode, Space } from 'antd';
const App: React.FC = () => (
<Space wrap>
<QRCode value="https://ant.design/" status="loading" />
<QRCode value="https://ant.design/" status="expired" onRefresh={() => console.log('refresh')} />
</Space>
);
export default App;