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
Name | Type | Default | Description |
---|---|---|---|
modelValue | Address | () => ({
street_address: undefined,
extended_address: undefined,
city: undefined,
state: undefined,
postal_code: undefined,
country: undefined,
}) | Model value address |
apiKey | string | undefined | Google Maps API Key. This takes precedence over the key defined in stashOptions |
debounceTime | number | DEBOUNCE.MEDIUM | Debounce time in milliseconds to perform API requests on search |
disabled | boolean | false | Wether the Select is disabled or not |
errorText | string | undefined | Error text to be passed down to Select component |
hintText | string | undefined | Hint text to be passed down to Select component |
label | string | undefined | Label text to be passed down to Select component |
placeholder | string | 'Type an address' | Select placeholder |
preventEmpty | boolean | false | Disallows values from being de-selected |
Slots
Name | Description |
---|---|
hint |
Events
Name | Description |
---|---|
update:modelValue | Emitted when the model value changes |
error | Emitted when an error occurs while reaching out to Google's API |