mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
25 lines
572 B
TypeScript
25 lines
572 B
TypeScript
|
import React from 'react';
|
||
|
import { QRCode, Space, theme } from 'antd';
|
||
|
|
||
|
const { useToken } = theme;
|
||
|
|
||
|
const App: React.FC = () => {
|
||
|
const { token } = useToken();
|
||
|
return (
|
||
|
<Space>
|
||
|
<QRCode
|
||
|
value="https://ant.design/"
|
||
|
color={token.colorSuccessText}
|
||
|
style={{ marginBottom: 16, backgroundColor: token.colorBgLayout }}
|
||
|
/>
|
||
|
<QRCode
|
||
|
value="https://ant.design/"
|
||
|
color={token.colorInfoText}
|
||
|
style={{ marginBottom: 16, backgroundColor: token.colorBgLayout }}
|
||
|
/>
|
||
|
</Space>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default App;
|