vue-tiny-select

0.1.1 • Public • Published

vue-tiny-select

installation

 npm install vue-tiny-select

usage:

  <vue-tiny-select v-model="selected" :options="options" multiple></vue-tiny-select>

.vue file:

import VueTinySelect from "vue-tiny-select";
export default {
  name: 'App',
  components: {
    VueTinySelect
  },
  data() {
    return {
      selected: null,
      options: [
        {
          label: 'js',
          value: 1
        },
        {
          label: 'php',
          value: 2
        },
        {
          label: 'python',
          value: 3
        },
        {
          label: 'c++',
          value: 4
        },
        {
          label: 'ruby',
          value: 5
        },
        {
          label: 'c',
          value: 6
        },
        {
          label: 'c#',
          value: 7
        },
        {
          label: 'dart',
          value: 8
        }
      ],
    }
  },
}

Package Sidebar

Install

npm i vue-tiny-select

Weekly Downloads

2

Version

0.1.1

License

none

Unpacked Size

388 kB

Total Files

19

Last publish

Collaborators

  • atashfaraz