Barcodes are ideal components for programmatically encoding data. They are commonly used for storing data such as item serial numbers in retailers and warehouses.
Barcodes can be rendered as an <svg> and <canvas> element.
Using the svg rendering mode is recommended as the barcode doesn't lose quality when it is zoomed.
The barcode element supports a wide range of the most common barcode types available:
The barcode's color, background color and bar dimensions can be customized by their respective properties.
The label of the barcode can be set to visible or hidden with displayLabel. Its color, font, size, margins and position can be customized by their respective properties.