🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

vue-multiselect-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-multiselect-dropdown

A reusable Vue dropdown component with multi-select and search support

latest
npmnpm
Version
1.1.9
Version published
Weekly downloads
1
-96%
Maintainers
1
Weekly downloads
 
Created
Source

vue-multiselect-custom-dropdown

A flexible and elegant Vue 3 component for multiselect and single-select dropdowns with search, keyboard navigation, custom placeholders, and validation support. Perfect for forms and complex selection UIs.

npm license

✨ Features

  • ✅ Single & Multiple select modes
  • 🔍 Searchable dropdown
  • 🎨 Fully customizable styles (scoped CSS)
  • 📦 Small footprint – optimized for Vue 3 + Vite
  • ⌨️ Keyboard navigation support (arrow keys, Enter, Esc)
  • ❌ Tag removal in multi-select mode
  • 🧪 Built-in validation message support
  • 🧩 Works well in forms

📦 Installation

npm i vue-multiselect-dropdown

Register the component

Global registration

// main.js or main.ts
import { createApp } from 'vue';
import App from './App.vue';
import MultiselectCustomDropDown from 'vue-multiselect-dropdown';

const app = createApp(App);
app.component('MultiselectCustomDropDown', MultiselectCustomDropDown);
app.mount('#app');

Local registration

import MultiselectCustomDropDown from 'vue-multiselect-dropdown';

export default {
  components: {
    MultiselectCustomDropDown
  }
};

<template>
  <MultiselectCustomDropDown
    v-model="selected"
    :options="dropdownOptions"
    :multiple="true"
    :searchable="true"
    label="Select Users"
    placeholder="Choose..."
    :required="true"
    labelKey="name"
    valueKey="id"
    error="This field is required"
  />
</template>

<script setup>
import { ref } from 'vue';

const selected = ref([]);

const dropdownOptions = [
  { id: 1, name: 'Alice' },
  { id: 2, name: 'Bob' },
  { id: 3, name: 'Charlie' }
];
</script>
PropTypeDefaultDescription
modelValueArray/Object/String[]Selected value(s), supports v-model
optionsArray[]Array of dropdown options
multipleBooleanfalseEnable multi-select mode
searchableBooleanfalseEnable search input
placeholderString"Select an option"Placeholder text
labelString""Optional label for the dropdown
requiredBooleanfalseShow red asterisk if required
errorString""Error message below the field
labelKeyString"name"Key in option object for label display
valueKeyString"value"Key in option object for unique value

Keywords

vue

FAQs

Package last updated on 24 Jul 2025

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