Socket
Socket
Sign inDemoInstall

react-qr-rounded

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-qr-rounded

React component for QR code generation with rounded corners and cutout option


Version published
Weekly downloads
1.2K
decreased by-19.86%
Maintainers
1
Weekly downloads
 
Created
Source

react-qr-rounded

React Component for QR code generation.

Features:

  • Rounded corners
  • Cutout in the middle of the QR code for placing a logo or other image
  • Rendered to SVG
  • Responsive
  • Custom colors
  • TypeScript support
  • Passing props to SVG element

Available Props

proptyperequireddefault value
childrenstringyes
colorstring'#000'
backgroundColorstring
cutoutbooleanfalse
cutoutElementReactElement
errorCorrectionLevelstring ('L' 'M' 'Q' 'H')'Q'
roundingnumber (0 - 100)0
...SVGAttributes<SVGElement>

Examples:

Minimal example:

import ReactDOM from "react-dom";
import { QR } from "react-qr-rounded";

ReactDOM.render(
  <QR>https://iofjuupasli.github.io/react-qr-rounded/</QR>,
  document.getElementById("app")
);

All props:

<QR
  color="#000"
  backgroundColor="#fff"
  rounding={100}
  cutout
  cutoutElement={
    <img
      src="https://random.imagecdn.app/500/500"
      style={{
        objectFit: "contain",
        width: "100%",
        height: "100%",
      }}
    />
  }
  errorCorrectionLevel="H"
>
  https://www.fugo.ai/
</QR>
Result:

_home_iofjuupasli_projects_react-qr-rounded_examples_index html

LICENSE

MIT

The word 'QR Code' is registered trademark of DENSO WAVE INCORPORATED
http://www.denso-wave.com/qrcode/faqpatent-e.html

Keywords

FAQs

Package last updated on 19 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc