tiaanduplessis / react-qr-image

Generate a QR Image for your React app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview of QR codes generated

react-qr-image

package version package downloads standard-readme compliant package license make a pull request

A React component for a QR image generated from text.

πŸ“– Table of Contents

βš™οΈ Install

Install the package locally within you project folder with your package manager:

With npm:

npm install react-qr-image

With yarn:

yarn add react-qr-image

With pnpm:

pnpm add react-qr-image

πŸ“– Usage

import React from "react";
import ReactDOM from "react-dom";

import QRImage from "react-qr-image";

function App() {
  return (
    <>
      <QRImage text="hello" />
      <QRImage text="hello" color="red" />
      <QRImage text="hello" color="white" background="#111" />
      <QRImage>hello</QRImage>
    </>
  );
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

Edit wispy-haze-cvm06

πŸ“š API

For all configuration options, please see the API docs.

πŸ’¬ Contributing

Got an idea for a new feature? Found a bug? Contributions are welcome! Please open up an issue or make a pull request.

πŸͺͺ License

MIT Β© Tiaan du Plessis

About

Generate a QR Image for your React app

License:MIT License


Languages

Language:TypeScript 100.0%