1.0.1 • Published 8 years ago

react-halftone-qrcode v1.0.1

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

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

proptypedefault value
textstringhttps://github.com/fangj/react-halftone-qrcode
srcstring
colorLightstring (CSS color)"#FFFFFF"
colorDarkstring (CSS color)"#000000"
sizenumber246