0.0.5 • Published 3 months ago

ng-qrcode-svg v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

ng-qrcode-svg

npm-version npm license

Simple QR code generator (SVG only) for Angular

Install 🌐

npm install ng-qrcode-svg

Demo ‍🧑‍💻

You can test it here:

https://projects.web-timo.de/preview/ng-qrcode-svg

Usage 🔥

  1. Import module QrcodeSvgModule
import {NgModule} from '@angular/core';
import {QrcodeSvgModule} from '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

@larscom/ng-qrcode-svg

This is a renewed variant of the @larscom/ng-qrcode-svg. This runs on Angular 16 and Ivy. I personally use the library, and it is therefore regularly maintained.

You can find more information in the original project: github.com/larscom/ng-qrcode-svg

0.0.5

3 months ago

0.0.4

7 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago