Pass the 8 digits printed on the pack.
can-barcode.tsx
UpcEBarcode
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| aria-label | string | — | Defines a string value that labels the current element. The accessible name. Default "<kind>: <text>" ("EAN-13: 5901234123457"); Code 128 and Code 39 say the kind only, or the link, as their value can be a return code or a key. |
| fit | boolean | — | Fill the width of the parent, in whole px a module when that loses one module of width or less (as the QR Code), else the exact width. Default false: the narrowest bar sets the size (moduleWidth, height, unit). |
| module | number | — | The narrowest bar in unit. Default 2 (px). Use whole px on screen. Values under 0.5px or 0.1mm (and 0, or not a number) clamp to them: the layout divides by this width. |
| height | number | — | The bar height in unit. Default 64 (px). With fit, the height in px. |
| text | "bottom""none" | — | The human-readable text under the bars. Default bottom. |
| unit | "mm""px" | — | mm sizes the code for print: moduleWidth={0.33} is EAN-13 at 100%. Default px. |
| plate | boolean | — | The light plate under the code. Default true. |
| status | "empty""error""loading""ready" | — | The load state. Default ready. loading: the skeleton while the value is not known yet. empty: the empty box. error shows as ready: the error box is for a value the code cannot hold. |
| labels | Partial<CodeSymbolLabels> | — | The texts of the empty and error states. |
| on | — | Runs once for each new error (a wrong check digit, a letter in EAN-13), after commit. It does not run again for the same error, and typed values are deferred: a field that shows the error should derive it from the value with the kind's encoder (cached, so free), not clear it on each change. | |
| value | string | — | The data etiket encodes. 8 digits: the number system 0 or 1, six digits, and the check digit. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |









