QRCode
display
QRCode component
Terminal
$termuijs render q-r-code
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
| Prop | Type | Required | Description |
|---|---|---|---|
data | string | required | — |
darkChar | string | optional | — |
lightChar | string | optional | — |
showText | boolean | optional | — |