Pass any URL, deep link, Wi-Fi string, or short text to [value] and ply-qr-code encodes a scannable SVG QR matrix live in the browser with zero third-party packages. Supports versions 1–6 (up to 106 UTF-8 bytes) with a built-in quiet zone and one-click SVG download.
Unlock it plus 108 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.
Type or paste any link below — the QR code updates on every keystroke and can be scanned right off your screen or downloaded as an SVG.
18 / 106 UTF-8 bytes
Try a preset
How it works
Every change to [value] computes a Reed-Solomon Level L QR matrix synchronously in TypeScript and renders crisp vector rectangles inside an inline <svg>. Nothing leaves the browser.
<input ply-input [ngModel]="link()" (ngModelChange)="link.set($event)" /> <ply-qr-code [value]="link()" caption="Scan to open"></ply-qr-code>
TypeScript
import { Component, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
// Install: npx ply-ui-cli add qr-code
// Paths are relative to aliases.components (default: src/app/components)
import { QrCodeComponent } from './qr-code/qr-code.component';
@Component({
selector: 'app-qr-code-example',
imports: [
QrCodeComponent,
FormsModule
],
template: `...`
})
export class QrCodeExampleComponent {
link = signal('https://ply-ui.com');
}Install
npx ply-ui-cli add qr-code
Choose sm for compact cards, md for share modals, or lg for print and check-in kiosks.
Small
https://ply-ui.com
<ply-qr-code value="https://ply-ui.com" caption="Small" size="sm" [showDownload]="false"></ply-qr-code> <ply-qr-code value="https://ply-ui.com/pricing" caption="Medium" size="md"></ply-qr-code>
TypeScript
import { Component } from '@angular/core';
// Install: npx ply-ui-cli add qr-code
// Paths are relative to aliases.components (default: src/app/components)
import { QrCodeComponent } from './qr-code/qr-code.component';
@Component({
selector: 'app-qr-code-example',
imports: [
QrCodeComponent
],
template: `...`
})
export class QrCodeExampleComponent {}Install
npx ply-ui-cli add qr-code
npx ply-ui-cli add qr-code
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.
npx -y ply-ui-mcp
Ply provides standalone components. Import the exact elements you want to use into your component.
// Install: npx ply-ui-cli add qr-code
// Paths are relative to aliases.components (default: src/app/components)
import { QrCodeComponent } from './qr-code/qr-code.component';
@Component({
selector: 'app-your-component',
imports: [
QrCodeComponent
],
template: `...`
})
export class YourComponent {} API for qr-code — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
ply-qr-code | class | string | '' | Extra host classes merged via `cn()`. |
ply-qr-code | value | string | '' | URL or text to encode into the QR matrix. |
ply-qr-code | caption | string | '' | Short heading shown beneath the code. |
ply-qr-code | size | 'sm' | 'md' | 'lg' | 'md' | Visual size of the QR code mat. |
ply-qr-code | showDownload | boolean | true | Shows the Download SVG action button beneath the code. |
Content