Skip to content

QRCodeOptions

Defined in: packages/core/src/core/QRCodeSvgRendererOptions.ts:6

  • Omit<QRCodeRenderersOptions, "margin">

optional aria-hidden: boolean

Defined in: packages/core/src/core/QRCodeSvgRendererOptions.ts:11


optional aria-label: string

Defined in: packages/core/src/core/QRCodeSvgRendererOptions.ts:9


optional aria-labelledby: string

Defined in: packages/core/src/core/QRCodeSvgRendererOptions.ts:10


optional color: object

Defined in: node_modules/.pnpm/@types+qrcode@1.5.6/node_modules/@types/qrcode/index.d.ts:172

optional dark: string

Color of dark module. Value must be in hex format (RGBA). Note: dark color should always be darker than color.light.

'#000000ff'

optional light: string

Color of light module. Value must be in hex format (RGBA).

'#ffffffff'

Omit.color


optional errorCorrectionLevel: QRCodeErrorCorrectionLevel

Defined in: node_modules/.pnpm/@types+qrcode@1.5.6/node_modules/@types/qrcode/index.d.ts:18

Error correction level.

'M'

Omit.errorCorrectionLevel


optional fontSize: number | `${number}%` | null

Defined in: packages/core/src/core/QRCodeSvgRendererOptions.ts:7


optional margin: number | `${number}%` | null

Defined in: packages/core/src/core/QRCodeSvgRendererOptions.ts:8


optional maskPattern: QRCodeMaskPattern

Defined in: node_modules/.pnpm/@types+qrcode@1.5.6/node_modules/@types/qrcode/index.d.ts:24

Mask pattern used to mask the symbol.

If not specified the more suitable value will be calculated.

Omit.maskPattern


optional scale: number

Defined in: node_modules/.pnpm/@types+qrcode@1.5.6/node_modules/@types/qrcode/index.d.ts:165

Scale factor. A value of 1 means 1px per modules (black dots).

4

Omit.scale


optional toSJISFunc: QRCodeToSJISFunc

Defined in: node_modules/.pnpm/@types+qrcode@1.5.6/node_modules/@types/qrcode/index.d.ts:29

Helper function used internally to convert a kanji to its Shift JIS value. Provide this function if you need support for Kanji mode.

Omit.toSJISFunc


optional version: number

Defined in: node_modules/.pnpm/@types+qrcode@1.5.6/node_modules/@types/qrcode/index.d.ts:13

QR Code version. If not specified the more suitable value will be calculated.

Omit.version


optional width: number

Defined in: node_modules/.pnpm/@types+qrcode@1.5.6/node_modules/@types/qrcode/index.d.ts:171

Forces a specific width for the output image. If width is too small to contain the qr symbol, this option will be ignored. Takes precedence over scale.

Omit.width