Skip to content
Postcode lookup, light
Light
Postcode lookup, dark
Dark

Every state

  • Postcode lookup, default, light
    Postcode lookup, default, dark

    default

  • Postcode lookup, focus, light
    Postcode lookup, focus, dark

    focus

  • Postcode lookup, looking-up, light
    Postcode lookup, looking-up, dark

    looking-up

  • Postcode lookup, found, light
    Postcode lookup, found, dark

    found

  • Postcode lookup, editing, light
    Postcode lookup, editing, dark

    editing

  • Postcode lookup, not-found, light
    Postcode lookup, not-found, dark

    not-found

  • Postcode lookup, error, light
    Postcode lookup, error, dark

    error

  • Postcode lookup, choose-gb, light
    Postcode lookup, choose-gb, dark

    choose-gb

  • Postcode lookup, filled-gb, light
    Postcode lookup, filled-gb, dark

    filled-gb

  • Postcode lookup, found-us, light
    Postcode lookup, found-us, dark

    found-us

  • Postcode lookup, disabled, light
    Postcode lookup, disabled, dark

    disabled

Props

PropTypeDefaultWhat it does
idstring"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.
defaultPostcodestring–Starting postcode.
defaultHouseNumberstring–Starting house number (NL).
defaultAdditionstring–Starting addition (NL).
defaultChoicestring–GB: the chosen address line, one of results.
defaultStreetstring–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.
resultsPostcodeLookupAddress[]–Starting results, shown with status found.
manualboolean–Start with the found street and town open for editing.
errorstring–Error under the postcode.
disabledboolean–Disables every field.
classNamestring–Extra classes on the outer wrapper.

More address inputs

All 5
address-input-05 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans