Pass the DPID, and the format and customer data when the code holds them.
letter-code.tsx
AustraliaPostBarcode
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| aria-label | string | — | Defines a string value that labels the current element. The accessible name. Default the kind ("Data Matrix code"), or "<kind>: <value>" for a link. |
| value | string | — | The data etiket encodes. The 8-digit Delivery Point Identifier (DPID). |
| pixel | number | — | The outer width in px, quiet zone included. The height follows the symbol. |
| fit | boolean | — | 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. |
| 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 (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. | |
| format | "11""59""62" | "11" | The format control code: 11 Standard (default), 59 or 62 with customer data. |
| customer | string | "" | The customer data of a 59 or 62 code. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |











