
Company News
Socket Named to Rising in Cyber 2026 List of Top Cybersecurity Startups
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.
react-multiselect-dropdown
Advanced tools
A client-side React component that presents the user with a list of items and select one or more of them using a DropDown.
A client-side React component that presents the user with a list of items that maybe a group and select one or more of them using a DropDown. support searchInput that filter options,selectAllCheckBox that select all options ,clear button that clear all selected options
Support for asynchronous search;
Node
npm install react-multiselect-dropdown
import MultiSelect from 'react-multiselect-dropdown'
Minimal usage:
let dataSource = [
{id: 1, name: 'Item1'},
{
id: 2,
name: 'Item2',
children:[
{id: 2.1, name: 'Item2.1'},
{id: 2.2, name: 'Item2.2'}
]
}
]
let dataSourceConfig = {
label: 'id',
text: 'name'
}
<MultiSelect
dataSource={dataSource}
dataSourceConfig={dataSourceConfig}
initValue={[1,2]}
onChange={this.onChange}
/>
dataSource - list of objects data for the multi-select. By default, these should have id and name properties, but this is configurable via props dataSourceConfig.
onChange(value) - callback which will be called with selected option objects each time the selection is added to or clear all selected options or select all opitons.
initValue - init options checked
dataSourceConfig - object that config dataSource object's property
showTextNumber - control button text default 1 that show selected text if selected number less than showTextNumber;
hasSelectAll - not support full selection if value is false
hasSearch - not support selector's filter if value is false
buttonText - support button placeholder
{
dataSource: [],
dataSourceConfig: {label: 'id', text: 'name'},
showTextNumber: 1,
buttonText: "选项",
hasSelectAll: true,
hasSearch: false
}
Example which implements display of selected items and de-selection.
import React from "react";
import ReactDOM from "react-dom";
import "./css/multiSelector.css";
import MultiSelect from "./lib";
ReactDOM.render(<MultiSelect dataSource={[{id: 1, name: "test1"}, {id: 2, name: "test2"}]}/>, document.getElementById('root'));
FAQs
A client-side React component that presents the user with a list of items and select one or more of them using a DropDown.
We found that react-multiselect-dropdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.

Research
Socket detected 84 compromised TanStack npm package artifacts modified with suspected CI credential-stealing malware.

Security News
A dispute over fsnotify maintainer access set off supply chain alarms around one of Go’s most widely used filesystem libraries.