easy-react-multiselect-dropdown

An Easy to Use Multi Select Dropdown Component for React.js

Usage no npm install needed!

<script type="module">
  import easyReactMultiselectDropdown from 'https://cdn.skypack.dev/easy-react-multiselect-dropdown';
</script>

README

React Multi-Select Dropdown Component

This is a react dropdown component for multi-select dropdown.

Usage:

import MultiSelectDropdown from ./MultiSelectDropdown.js

Use Tag <MultiSelectDropdown />

Props:

  1. getSelected: (function) a function to get the options selected. This function is called everytime the state changes

  2. options: (array) an array that holds all the 'options' for the dropdown field

  3. (optional) color: string to specify the text color of the option selected (defaults to 'white')

  4. (optional) bgColor: string to specify the background color of the option selected (defaults to '#9f00e9')

Example:

Example React Multi Select Dropdown Component