Skip to content

QRCodePattern

widgetsdisplay

Decorative QR-style pattern generator

Installation

$ bunx termuijs add q-r-code-pattern

Copies the source into src/components/q-r-code-pattern/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { QRCodePattern } from '@termuijs/widgets'
ts
new QRCodePattern(data: string, style?: Partial<Style>, opts?: QRCodePatternOptions)

API Reference

QRCodePattern

PropTypeRequiredDescription
datastringrequired
darkCharstringoptional
lightCharstringoptional
showTextbooleanoptional
#display#q-r-code-pattern