Skip to content

QRCode

widgetsdisplay

QRCode component

Installation

$ bunx termuijs add q-r-code

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

Usage

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

API Reference

QRCode

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