Socket
Socket
Sign inDemoInstall

vue3-google-address-autocomplete

Package Overview
Dependencies
21
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue3-google-address-autocomplete

A Vue 3 component for Google address autocomplete


Version published
Weekly downloads
743
decreased by-28.97%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vue3-google-address-autocomplete

This project provides a Vue 3 component that uses Google's Places API for address autocomplete functionality.

Prerequisites

Before you begin, you will need a Google Maps API key from Google Cloud Platform Console. You'll also need to enable the Maps JavaScript API and the Places API.

Installation

To install this component in your project, use npm or yarn:

npm install vue3-google-address-autocomplete

or

yarn add vue3-google-address-autocomplete

Usage

Import and register the component:

<template>
  <GoogleAddressAutocomplete 
    apiKey="your_google_api_key"
    v-model="address"
    @callback="callbackFunction"    
    class="css-class-here"
    placeholder="placeholder if you wish"
  />
</template>

<script setup lang="ts">
import { ref } from 'vue';
import GoogleAddressAutocomplete from 'vue3-google-address-autocomplete'

const address = ref('');

const callbackFunction(place) {
   console.log(place);
}
</script>

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

FAQs

Last updated on 23 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc