A client-side React component that presents the user with a list of items and allows them to filter and select one or more of them.

Usage no npm install needed!

<script type="module">
  import reactMultiselect from '';


Please get in touch with me if you have any issues or suggestions for this project. It's under active development and I'm taking requests for new features or bug fixes. You can contact me via e-mail at


React-MultiSelect is a client-side React component that presents the user with a list of items and allows them to filter and select one or more of them.

React-MultiSelect Example



Enter some text in the input box to filter the items listed. Selections are remembered even if the items are momentarily not visible.

Dynamic Data

Supports loading item lists dynamically with AJAX requests. Selections will remain across requests as long as the item ids stay the same. This can be helpful where you need the items in one multiselect to depend on the selections in another multiselect and want them to update dynamically.


Some examples are included with the project. You can run them locally using nodejs to serve the files.

Run the following commands in the project directory, and then navigate to the URL displayed.

$ sudo npm install http-server -g
$ http-server


The options below can be passed to the React-MultiSelect component to customize its behavior.


/** @jsx React.DOM */
  onChange={function(selections) {}}
  onItemSelected={function(item) {}}
  onItemDeselected={function(item) {}}


    items: {},
    placeholder: '',
    onChange: function(selections) {},
    onItemSelected: function(item) {},
    onItemDeselected: function(item) {}
  }), document.getElementById('multiselect'))


Items to display in the list. Each item must contain an id property to identify the item and a text property to display in the item list.


Text to initially display in the filter input box. Defaults to an empty string.


Called after items are selected or deselected. The parameter is an object where the keys are item ids and the values are true or false to indicate whether or not an item is selected. Use this event when you need a summary of changes and not individual selections or deselections as they occur.


Called whenever an item is selected. The parameter is the item. Use this when you want to capture selections as they occur.


Corresponding event for onItemSelected that is called whenever an item is deselected.


You can use the following CSS selectors to customize the appearance of the component.

div.multiselect input // Filter text
div.multiselect ul
div.multiselect li
div.multiselect li:hover
div.multiselect button
div.multiselect .selected // Style for a selected item
div.multiselect .deselected // Style for a deselected item

See example/basic.css to get started with styling.