v-select2

Vue 2 Select 2 component

Usage no npm install needed!

<script type="module">
  import vSelect2 from 'https://cdn.skypack.dev/v-select2';
</script>

README

Vue-Select2

Select2 component for Vue2

Installation

yarn install --save v-select2

Examples

<template>
  <form>
    <select2 :options="options"></select2>
  </form>
</template>
<script>
  import Select2 from 'vue-select2/src/Select2'

  export default {
    data () {
      return {
        options: [
          {
            name: 'Name 1',
            value: 'Value 1'
          }
        ]
      }
    }
    components: {
      'select2': Select2
    }
  }
</script>