react-halftone-qrcode

1.0.1 • Public • Published

react-halftone-qrcode

A React component to generate Halftone QRCode with image. Inspired by Lachlan Arthur

Installation

react-halftone-qrcode

Usage

import React from "react";
import ReactDOM from "react-dom";
import HalftoneQRCode from "../src/index";
 
ReactDOM.render(
<HalftoneQRCode src="./catpaw-bw.jpg" text="https://github.com/fangj/react-halftone-qrcode"/>,
document.getElementById("root")
);

Available Props

prop type default value
text string https://github.com/fangj/react-halftone-qrcode
src string
colorLight string (CSS color) "#FFFFFF"
colorDark string (CSS color) "#000000"
size number 246

Package Sidebar

Install

npm i react-halftone-qrcode

Weekly Downloads

3

Version

1.0.1

License

ISC

Last publish

Collaborators

  • fangjian