JSPM

react-qr-image

1.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 157
    • Score
      100M100P100Q80503F
    • License MIT

    A React component for a QR image generated from text

    Package Exports

    • react-qr-image
    • react-qr-image/dist/index.js
    • react-qr-image/dist/index.mjs

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-qr-image) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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