A lightweight, dependency-free multi-select dropdown control that replaces a standard HTML select element with rich features like search/filter, checkboxes, limit display, and custom styling. Current stable version 2.0.2 is released irregularly with incremental fixes. Key differentiators: pure JavaScript/ES module with no dependencies, minified standalone script for direct browser use, and support for both ESM (ES6 class) and UMD/global patterns. Suitable for simple multi-select needs without heavy frameworks.
npm install multiselect-dropdownNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a multi-select dropdown from a <select> element with options like placeholder, limit, search, select-all, and change callback.
Use import statement or switch to script tag with dist/multiselect.min.js.
Use import MultiselectDropdown from 'multiselect-dropdown' instead of named import.
Create a .d.ts file or use @ts-ignore. Consider contributing types to DefinitelyTyped.
Set search: true in the options object.
Replace onItemSelect with onChange callback.
import MultiselectDropdown from 'multiselect-dropdown';
Run 'npm install multiselect-dropdown' or verify node_modules.
Use ES6 import: import MultiselectDropdown from 'multiselect-dropdown';
Use <script src="path/to/multiselect.min.js"></script> before your script.
No dependency data recorded yet.