Socket
Socket
Sign inDemoInstall

@saiful676/vuetify-country-search

Package Overview
Dependencies
12
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @saiful676/vuetify-country-search

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


Version published
Maintainers
1
Created

Readme

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: '',
    region: ''
  })
})

<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: '',
    state: '',
    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

FAQs

Last updated on 21 Nov 2021

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