A multi/single select component for Vue.js (>=2.x) at version 4.6.0. Provides a dropdown-based selection UI with support for groups, custom styling via CSS functions, search filtering, and programmable filters. The component emits selectionChanged (customizable), open, and close events. Differentiators include built-in filter functions for select/deselect all, customizable button labels and CSS, and position options (top-left, top-right, bottom-left, bottom-right). Requires Vue 2.x; no Vue 3 support. Release cadence is maintenance-oriented with occasional updates.
npm install vue-multi-selectNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage with options, selectOptions, v-model, and event handling for a multi-select component.
Use with Vue 2.x or look for a Vue 3 compatible alternative.
Use `components: { 'vue-multi-select': vueMultiSelect }` instead of `components: { vueMultiSelect }`.Add `import 'vue-multi-select/dist/lib/vue-multi-select.min.css'` to your entry file.
Pass an object with properties like `{ multi: true, labelName: 'name' }`.Use `Vue.use(vueMultiSelect)` or register it in the components option of your Vue instance/component as `'vue-multi-select'`.
Ensure the package is installed and use the correct path: `import 'vue-multi-select/dist/lib/vue-multi-select.min.css'`.
Define the v-model variable in the data option of your component: `data() { return { selectedValues: [] }; }`Pass an array of options to selectOptions, e.g., `:selectOptions="[{name: 'Option1'}, {name: 'Option2'}]"`