Pass the postcode and the Delivery Point Suffix, with no space.
letter-code.tsx
RoyalMailBarcode
<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 postcode and the Delivery Point Suffix, with no space: "SN34RD1A". |
| 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. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |











