Socket
Socket
Sign inDemoInstall

@larscom/ng-qrcode-svg

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @larscom/ng-qrcode-svg

Simple QR code generator (SVG only) for Angular


Version published
Weekly downloads
22
increased by37.5%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@larscom/ng-qrcode-svg

npm-version npm license codecov

Simple QR code generator (SVG only) for Angular

Demo GIF

Installation

npm install @larscom/ng-qrcode-svg

Usage

  1. Import module QrcodeSvgModule
import { NgModule } from '@angular/core';
import { QrcodeSvgModule } from '@larscom/ng-qrcode-svg';

@NgModule({
  imports: [
    QrcodeSvgModule // import QrcodeSvgModule
  ]
})
export class MyModule {}
  1. Use the qrcode-svg component which will render a QR code in SVG format
<qrcode-svg value="hello world!"></qrcode-svg>

Component Properties

NameDescriptionDefault
@Input() value: stringThe value which need to be encodedundefined
@Input() ecl: 'low' | 'medium' | 'quartile' | 'high'Error correction levelmedium
@Input() borderSize: numberThe padding between the edge and the QR code (quiet zone)2
@Input() size: string | numberThe size of the QR code SVG (css format)250px
@Input() backgroundColor: stringThe 'path' color (background)#FFFFFF
@Input() foregroundColor: stringThe 'rect' color (foreground)#000000
@Input() alt: string | undefinedHTML alt attributeundefined
@Input() ariaLabel: string | undefinedHTML aria-label attributeundefined

Keywords

FAQs

Last updated on 04 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc