

Every state


default


focus


looking-up


found


editing


not-found


error


choose-gb


filled-gb


found-us


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "address" | Base id; the fields are <id>-postcode, <id>-number, <id>-street … |
| country | "NL" | "GB" | "DE" | "BE" | "FR" | "US" | "NL" | Lookup key and postcode rule: NL postcode + house number, GB postcode with a list, the others postcode to town (US: city and state). |
| lookup | (q: PostcodeLookupQuery) => Promise<PostcodeLookupAddress[]> | – | Resolves the matching addresses ([] when none). The default searches a small made-up local set. |
| defaultPostcode | string | – | Starting postcode. |
| defaultHouseNumber | string | – | Starting house number (NL). |
| defaultAddition | string | – | Starting addition (NL). |
| defaultChoice | string | – | GB: the chosen address line, one of results. |
| defaultStreet | string | – | Starting street for the town-only countries. |
| status | "idle" | "looking-up" | "found" | "not-found" | – | Starting status, e.g. a postcode the server already looked up. |
| results | PostcodeLookupAddress[] | – | Starting results, shown with status found. |
| manual | boolean | – | Start with the found street and town open for editing. |
| error | string | – | Error under the postcode. |
| disabled | boolean | – | Disables every field. |
| className | string | – | Extra classes on the outer wrapper. |
More address inputs
All 5address-input-05 is in UI ProGet UI Pro, €199


