Skip to content

AddressSelect API

API reference docs for the Stash AddressSelect component. Learn about the props, CSS, and other APIs of this exported module.

Import

ts
import AddressSelect from '@leaflink/stash/AddressSelect.vue';

Props

NameTypeDefaultDescription
modelValueAddress() => ({ street_address: undefined, extended_address: undefined, city: undefined, state: undefined, postal_code: undefined, country: undefined, })Model value address
apiKeystringundefinedGoogle Maps API Key. This takes precedence over the key defined in stashOptions
debounceTimenumberDEBOUNCE.MEDIUMDebounce time in milliseconds to perform API requests on search
disabledbooleanfalseWether the Select is disabled or not
errorTextstringundefinedError text to be passed down to Select component
hintTextstringundefinedHint text to be passed down to Select component
labelstringundefinedLabel text to be passed down to Select component
placeholderstring 'Type an address' Select placeholder
preventEmptybooleanfalseDisallows values from being de-selected

Slots

NameDescription
hint

Events

NameDescription
update:modelValueEmitted when the model value changes
errorEmitted when an error occurs while reaching out to Google's API