1.0.2 • Published 6 years ago

react-side-qrcode v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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

image1

image2

image2

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago