1.1.4 • Published 4 years ago

inputbox-suggestion v1.1.4

Weekly downloads
54
License
-
Repository
-
Last release
4 years ago

Functionality

Interactive React UI component to show the auto-suggestion on the input based on the user's input in textbox based on provided data for suggestions. Demo - https://stackblitz.com/edit/react-b7kncf?file=src/App.js Screenshot -1

Usage (Demo - https://stackblitz.com/edit/react-b7kncf?file=src/App.js)

import  InputSuggestion  from  'inputbox-suggestion/dist';
....
data =["measure", "message", "machine"]
....
getCurrentVal = (curr) => this.setState({val : curr})
....
setValue = (inputVal) => this.setState({text : inputVal})
...
<InputSuggestion inputBoxValue={this.setValue} suggestions={data} />
...
<InputSuggestion  currentInputBoxValue={this.getCurrentVal} inputBoxValue={this.setValue} 
suggestionsStyle={{padding:'5%',borderBottom:'0.5px solid'}}
suggestions={data} />

Props Table

prop namefunctionalityrequired/optional
suggestionsData in form of Array to show suggestion for input*required
inputBoxValueReturn selected value of input boxoptional
currentInputBoxValueReturn the current value of input boxoptional
suggestionsStyleStyles for suggestionsoptional

Installation

npm i inputbox-suggestion

Contributor(s)

Mohit Kapoor -@2cool2envy - kapoormohit01@gmail.com

Let's together make it more better

eMail : kapoormohit01@gmail.com

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.1

5 years ago