react-side-qrcode
v1.0.2
Published
lower right qrcode
Downloads
2
Readme
react-side-qrcode
React component for website bottom right corner qrcode
Installation
npm install react-side-qrcode --save
or
yarn add react-side-qrcode
Introduction
Example
组件使用:
import QRcode from 'sideQRcode';
import 'sideQRcode/lib/index.css';
const options = {
qrCodeUrl: '//xxx.xxx.com/Hk6EEzh0G.png',//picture url
logoUrl: '//xxx.xxx.com/B1qBEMnAf.png',//picture url
iframeId: '',//if your website has iframe is iframe->id
};
return (
<QRcode {...options} />
)
参数: qrCodeUrl->二维码url
logoUrl-> 二维码下行小图标logo
iframeId-> 如果页面嵌入iframe为iframe的id
iconClassName-> 图标块自定义class
imgClassName-> 滑出二维码区域自定义class