Skip to content

Barcode element

A barcode or 2D code, drawn as vector graphics.

- { type: barcode, value: ... }
barcode.report.yaml
title: Barcodes
body:
reportHeader:
- layout: row
gap: 20pt
content:
- { type: barcode, symbology: qr, value: "https://taguareports.com", width: 72pt, alt: A QR code linking to taguareports.com }
- { type: barcode, symbology: dataMatrix, value: TAGUA-0042, width: 56pt, alt: A Data Matrix code for TAGUA-0042 }
- { type: barcode, symbology: code128, value: INV-0042, width: 130pt, height: 48pt, alt: A Code 128 barcode for INV-0042 }
- { type: barcode, symbology: ean13, value: "590123412345", width: 110pt, height: 64pt, alt: An EAN-13 barcode }
The barcode example, rendered by Tagua.

Type: keyword · Default: qr

The barcode format.

One of:

  • qr
  • dataMatrix
  • pdf417
  • code128
  • ean13

Type: text · Required

The data to encode (template).

Type: text

Alternative text (template) for screen readers.

It also has the properties of every element and the style properties.