@lendi/address-picker
TypeScript icon, indicating that this package has built-in type declarations

2.9.6 • Public • Published

@lendi/address-picker

An AddressPicker component.

Installation

yarn add @lendi/address-picker

Usage

Before using this component, please add the following googlemap script to your application's head.

<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDedPUSXQBIHOiI_Mrw5aKTGEy4I9GX3sY&libraries=geometry,places,visualization"></script>
import AddressPicker from '@lendi/address-picker';

<AddressPicker />;

Props

Name Description Default
onChange: On change from autosuggest only (e: SyntheticEvent<Element, Event>) => void
onSelectAddress When user selects the address - either from 'save' on manual entry or by selecting a suggestion from autosuggest (selection: AddressObject, formatString?: string) => void
country A two letter code corresponding to a country. Refer to ISO 3166-1 string 'au'
dataset Determines which address file to search, i.e. GNAF (Geoscape Australia’s Geocoded National Address File) or PAF (Australia Post's Postcode Address File) 'GNAF' 'PAF' 'GNAF'
isDisabled Disable the Autocomplete input boolean
onReset On reset, do a thing () => void
regionSearchOnly Allow user to search cities or postcodes only boolean
size Size of input ListSize 'md'
value string
manualAddressInputType Determines if postal address option is visible in manual input modal. (residential, postal, both) 'both' 'residential' 'postal'
onException Explicit onException handler (e: Error) => void

Readme

Keywords

none

Package Sidebar

Install

npm i @lendi/address-picker

Weekly Downloads

42

Version

2.9.6

License

ISC

Unpacked Size

256 kB

Total Files

20

Last publish

Collaborators

  • joshua-derbe-lendi
  • michaelhuttonlendi
  • simon_lau_lendi
  • mona_catapia_lendi
  • augustodiaslendi
  • benjamintan
  • kishan.vyas
  • rachit.arora
  • leoskbabu
  • hm.qm
  • oliverfrance
  • joymun
  • kjartan.johansen
  • simon.vollett
  • michael-palmes-lendi
  • dapovey
  • beiwang-lendi
  • nooshines
  • willhargan_lendi
  • fernandogontijo_
  • sylvialuo
  • phill_eade
  • trung-lendi
  • nghiato
  • sunny.niu
  • pratyush-lendi
  • mfarshadmehr
  • ritapang
  • jessezha
  • vinualwislendi
  • jannes.mingram.lendi
  • bchiong
  • antoine_lendi
  • lendi-owner
  • bradley.martin.lendi
  • andy_sawyer
  • anuragsri
  • malkyfaith
  • brianduan
  • andrealin
  • yihan_lu_lendi
  • stan-lendi
  • amir.sarvestani
  • timsilva
  • illi4
  • samnevers
  • tues
  • boris.gordon
  • leo.wei
  • edkim_lendi
  • bharadwajsampath
  • nodemacross
  • ddiprose_lendi
  • john.zhang
  • luissilvalendi
  • lendi-luizglingani
  • nikste
  • thomaslendi
  • dimitrioslendi
  • le-kang-lendi
  • yupeili
  • rwinarto.lendi
  • andrewantony
  • harshdeepgarg_lendi
  • dirgh