Demonstrating JsBarcode's method chaining API with multiple barcodes
EAN-13 barcode with EAN-5 add-on (common in retail)
Multiple barcodes for product identification and lot tracking
import { BarcodeAdvanced } from 'svelte-barcode-gen';
const operations = [
{
type: 'options',
options: { font: 'OCR-B' }
},
{
type: 'barcode',
format: 'EAN13',
value: '5901234123457',
options: { fontSize: 18 }
},
{
type: 'blank',
size: 20
},
{
type: 'barcode',
format: 'EAN5',
value: '12345',
options: { height: 85, textPosition: 'top' }
}
];
<BarcodeAdvanced {operations} />