Skip to content

A React-based dropdown menu component with multi-select and text search filtering.

Notifications You must be signed in to change notification settings

SteveSonoa/dropdowntextsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DropdownContainer Component

This project was bootstrapped with Create React App.

Below you will find some information on how to perform common tasks.
You can find the Create React App guide here.

How To Install

  • Clone this repo to your local directory
  • Type "cd dropdowntextsearch" to enter the repo
  • Type "npm install" to install the repo and its dependencies
  • Type "npm run start" to begin the demo

Component Details

As displayed in /App.js, the DropdownContainer component accepts 3 props. The PropTypes diagram is below:

{
	title: PropTypes.string,
	options: PropTypes.arrayOf(
		PropTypes.shape({
			name: PropTypes.string,
			value: PropTypes.string
		})
	),
	action: PropTypes.func
}

The 'action' callback will pass an array of objects in the same format as 'options' as parameters. In the event no options were selected, an empty array will be passed through.

Author

About

A React-based dropdown menu component with multi-select and text search filtering.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published