Skip to content

ITF-14 Barcode

Free

The barcode on an outer carton that a warehouse scanner reads. It holds the 14-digit carton number inside a thick frame that stops a short read.

  • React 19
  • Tailwind CSS 4

Added Nov 11, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Pass the GTIN-14 of the carton.

carton-code.tsx

Itf14Barcode

<div>
PropTypeDefaultDescription
aria-labelstring—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.
fitboolean—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).
moduleWidthnumber—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.
heightnumber—The bar height in unit. Default 64 (px). With fit, the height in px.
textPosition"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.
plateboolean—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.
labelsPartial<CodeSymbolLabels>—The texts of the empty and error states.
onError—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.
valueRequiredstring—The data etiket encodes. 13 or 14 digits (a GTIN-14): a missing check digit is added.
bearer"bars""frame"—A full frame (default) or bars on the top and bottom only.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use it for cartons and cases, not for the pack a shopper buys.
  • Use bearer="bars" for a label that has no room for the full frame.
  • Use unit="mm" for print sizes, and plate={false} to print on the board.
  • For the pack a shopper buys, or other code kinds in one item, use a Barcode.
  • For the price and the label text next to the code, add a Price.

It is an image, named by its value by default ("ITF-14: 15400141288763"). Pass aria-label to say what it is.

The digits also show as text under the bars, unless textPosition="none".

  1. AddedITF-14 Barcode.
Open the release