Resizeable, Reusable, and Dynamic dropdown component for displaying and choosing items from a list, supporting functionality of single or multi-item selection.
The component takes the following props.
| Prop | Type | Description |
|---|---|---|
multiSelect |
boolean | Enabling multi-select menu options |
description |
string | Dropdown component name tag |
listItems |
array | List of items for display in menu |
<DropDown
multiSelect=true
description="This is the menu description"
listItems=["item1", "item2", "item3", "item4"]
/>- Git
- Node
- React
- A clone of the react-dropdown-bar repo on your local machine
- cd hiveproject to go into the project root
- npm install to install the website's npm dependencies
- npm start to start the development server
- open http://localhost:3000 to open the site in your browser
Using React or vanilla (plain) Javascript, build a reusable dropdown menu component. Please do not use a pre-built dropdown from a component library. We expect you to build this from scratch.
MIT Licensed. Copyright (c) Mohammad Sleiman 2022.