react-qrcode-component

1.0.1 • Public • Published

安装

npm install react-qrcode-component
yarn add react-qrcode-component

用法

import React from 'react'
import ReactDOM from 'react-dom'
import QRCode from 'react-qrcode-component';

ReactDOM.render(
  <QRCode value="https://github.com/liuyang1106/react-qrcode.git" />,
  mountNode
);

可用属性

  value: '', // 需要转换的参数
  size: 128, // 二维码大小
  style: {}, // canvas样式
  level: 'L',
  bgColor: 'white',
  fgColor: 'black',
  scale: window.devicePixelRatio || 1, // 比例

Readme

Keywords

Package Sidebar

Install

npm i react-qrcode-component

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

162 kB

Total Files

12

Last publish

Collaborators

  • leoliu1106