Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

vuetify-country-search

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuetify-country-search

This package provides a pair of Vuetify components for countries/region select inputs. Components may be used together or standalone.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
44
91.3%
Maintainers
1
Weekly downloads
 
Created
Source

This package provides a pair of Vuetify components for countries/region select inputs. Components may be used together or standalone.

Installation

npm i --save vuetify-country-search
# or yarn add vuetify-country-search

Usage

import Vue from 'vue'
import VCountrySearch from 'vuetify-country-search'
Vue.use(VCountrySearch)

new Vue({}).$mount('#app')

// then inside your vue components
export default Vue.extend({
  data: () => ({
    country: 'AU',
    region: 'South Australia'
  })
})

<template>
    <v-country-select v-model="country" />
    <v-region-select v-model="region" :country="country" />
</template>

Use standalone

<script>
import { VCountrySelect, VRegionSelect, AllCountry, } from 'vuetify-country-search'

export default {
  name: 'App',
  components: { VCountrySelect, VRegionSelect },
  data: () => ({ 
    country: 'AU',
    AllCountry, // AllCountry are array of all country and state
  })
};
</script>

<template>
    <VCountrySelect v-model="country" />
    <br>
    <VRegionSelect v-model="state" :country="country">
</template>

Options

In addition to Vuetify VAutocomplete props, here are the available attributes that can be used with the provided components.

VCountrySelect

ParameterRequired?DefaultTypeDescription
v-modelyes''stringThe data binding for your component

VRegionSelect

ParameterRequired?DefaultTypeDescription
v-modelyes''stringThe data binding for your component

Contributing

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

Credits

  • vuetify-country-region-input
  • vue-country-region-select
  • https://www.npmjs.com/package/country-region-data

License

Apache License 2.0

Keywords

vue

FAQs

Package last updated on 21 Nov 2021

Did you know?

Socket

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