Skip to content

fangj/react-halftone-qrcode

Repository files navigation

react-halftone-qrcode

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

Demo

http://fangj.github.io/react-halftone-qrcode/

Installation

npm install 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published