• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Places component is based on places.js for Vue 2.x. Turn any <input> into an address autocomplete.

vue-places

Places component is based on places.js for Vue 2.x.

Turn any into an address autocomplete

circle-ci npm version Dependencies npm downloads code style: prettier License: MIT


Installation

# yarn
$ yarn add vue-places

# npm
$ npm install vue-places --save

Example

<template>
  <places
    v-model="form.country.label"
    placeholder="Where are we going ?"
    @change="val => { form.country.data = val }"
    :options="options">
  </places>
</template>

<script>
import Places from 'vue-places';

export default {
  data() {
    return {
      options: {
        appId: <YOUR_PLACES_APP_ID>,
        apiKey: <YOUR_PLACES_API_KEY>,
        countries: ['US'],
      },
      form: {
        country: {
          label: null,
          data: {},
        },
      },
    };
  },
  components: {
    Places,
  },
}
</script>

Algolia Places Documentation

More Repositories

1

nuxt-shopify

🛍 Seamless Shopify Buy SDK integration with Nuxt.js.
TypeScript
353
star
2

nuxt-graphql-request

Easy Minimal GraphQL client integration with Nuxt.js.
Vue
192
star
3

bluise

🍄 Bluise - A Nuxt.js & Netlify CMS boilerplate.
Vue
171
star
4

bulmil

💄 A agnostic UI components library based on Web Components, made with Bulma & Stencil.
TypeScript
152
star
5

prisma-serverless

Prisma (Nexus) + Typescript + AWS Serverless Lambda = 🎆
TypeScript
115
star
6

vue-embed

Vue 2.x component based on embed.js https://github.com/ritz078/embed.js
JavaScript
59
star
7

fastify-nuxtjs

Vue server side rendering support for Fastify with Nuxt
JavaScript
39
star
8

nuxt-ghost

Easy Ghost content API integration with Nuxt.js.
Vue
31
star
9

nuxt-stencil

Easy Stencil.js component library integration with Nuxt.js.
TypeScript
21
star
10

ui

CSS
5
star
11

sendle-node

Unofficial Node.js library for the Sendle API
TypeScript
4
star
12

cailloux

TypeScript
3
star
13

graphql-ethereum-address

Ethereum address scalar types for GraphQL
TypeScript
3
star
14

spera

Run & schedule your code in the background with a fully typed client
TypeScript
3
star
15

use-relay-pagination

React hook library to assist with GraphQL Relay pagination 🏄‍♂️
TypeScript
1
star
16

insomnia-plugin-user-agents

Insomnia plugin for generating user agents
JavaScript
1
star
17

mirage-iterm

🏝️ A port of the VS Code Mirage theme to iTerm2.
1
star
18

nuxt-dockerfile

🐳 Nuxt Dockerized
Dockerfile
1
star
19

atom-urple-syntax

Atom Urple Syntax theme
CSS
1
star
20

prismate

Just a quick simple boilerplate for prisma2 & apollo-server. Still very WIP
TypeScript
1
star
21

insomnia-plugin-cuid2

Insomnia plugin for generating cuids
JavaScript
1
star
22

vue2-superplaceholder

SuperPlaceholder based on superplaceholder.js for Vue 2.x.
JavaScript
1
star