Skip to content

Japan Post Barcode

Pro

The barcode on Japanese letters and postcards for the Japan Post discount. It holds the postcode and the block, house, and room numbers.

  • React 19
  • Tailwind CSS 4

Added Nov 11, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Japan Post Barcode needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
15
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Pass the postcode and the numbers of the address.

letter-code.tsx

JapanPostBarcode

<div>
PropTypeDefaultDescription
aria-labelstring—Defines a string value that labels the current element. The accessible name. Default the kind ("Data Matrix code"), or "<kind>: <value>" for a link.
valueRequiredstring—The data etiket encodes. The 7-digit postcode, with or without the hyphen: "150-2345".
pixelSizenumber—The outer width in px, quiet zone included. The height follows the symbol.
fitboolean—Fill the width of the parent, in whole px a module when that loses one module or less (the QR Code rule), else the exact width. Default false. Wide codes (postal, PDF417) on a phone.
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 (too much data, a character the kind cannot hold), 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.
addressstring""The block, house, and room numbers of the address: "5-6-3".
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Pass the 7-digit postcode in value, with or without the hyphen: "150-0002". Full-width digits and hyphens ("150-0002") also go in.
  • Pass the block, house, and room numbers in address: "3-21-2-804". With no address, the code holds the postcode alone.
  • Put it under the address block, on white paper with plate={false}.
  • Use fit in a narrow column or a card: the code fills the width of its parent, in whole px a bar where it can. pixelSize sets a fixed width.
  • For a parcel tracking number or an order number, use the Free Barcode.
  • For the address text that people read, use Address Display.

It is an image, named "Japan Post barcode" by default. Pass aria-label to say what it is, for example "Japan Post barcode for 150-0002".

The bars have no text: keep the address as text next to it.

  1. AddedJapan Post Barcode.
Open the release