Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 660 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 660 Bytes

InputFilterSearch

An input box that uses React to filter through an array of data to match the text inputted as characters are entered.

Demo

https://gyazo.com/443e0c02721db5b6e31817cb04b46753

SetUp

Simply put FilterBox.js and FilterBox.css (you may want to edit the stylesheet reference in FilterBox.js) in your React project. Include FilterBox.js in the file you want to use it in, and in some render function, put:

<FilterBox max={yourNumber} objects={yourListOfObjects} handleSelect={this.yourHandleSelectFunction()}>