A React component to generate Halftone QRCode with image. Inspired by Lachlan Arthur
http://fangj.github.io/react-halftone-qrcode/
npm install react-halftone-qrcode
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")
);
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 |