

Every state


default


focus


open


no-results


selected


error


open-gb


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "address-search" | Input id; the listbox is <id>-listbox. |
| name | string | "address" | Form field name. |
| country | "NL" | "GB" | "DE" | "BE" | "FR" | "US" | "NL" | Passed to suggest and sets the placeholder hint. |
| label | string | "Delivery address" | Visible label. |
| placeholder | string | – | Placeholder; defaults to a hint per country. |
| suggest | (query: string, country) => Promise<AddressSuggestion[]> | – | Resolves the suggestions for the typed text. The default searches a small made-up local list. |
| defaultSelected | AddressSuggestion | – | Start with this address chosen. |
| onSelect | (address: AddressSuggestion | null) => void | – | Called when an address is chosen, or with null when it is cleared. |
| onManual | () => void | – | Called by the Enter it manually link. |
| minChars | number | 2 | Characters typed before suggestions show. |
| error | string | – | Error message under the field. |
| disabled | boolean | – | Disables the field. |
| className | string | – | Extra classes on the outer Field. |
More address inputs
All 5address-input-01 is in UI ProGet UI Pro, €199


