0.3.2 • Published 1 year ago
textarea-autocomplete v0.3.2
Text Area With AutoComplete
Description
MIT License
This Component provides a text area where we can pass an array of options which will be available in the form of autocomplete.
Props
Props | Type | Description |
---|---|---|
suggestions | Array | list of values for autocomplete |
handleInput | Callback | called when input is changed with input text as argument |
editableStyle | object | style object for div edit |
placeholder | string | placeholder |
showSuggestionWithNoInput | bool | show suggestion without entering any input, ex on space |
showSuggestionStartsWith | bool | show suggestion which starts with input entered |
value | string | update innerText by passing the value or null to not affect the innerText |
handleFocus | func | called when textarea is focussed |
tabIndex | string |
Usage
import TextareaAutocomplete from "textarea-autocomplete";
Example Props
suggestions: [
"Addition",
"Ball",
"Call",
"Date",
"Test",
"Height",
"Condition",
],
handleInput: (input) => {
console.log(input);
},
editableStyle: {
minHeight: "80px",
width: "500px",
border: "1px solid darkgray",
},
showSuggestionWithNoInput: false,
showSuggestionStartsWith: false,
}; ```
0.1.10
1 year ago
0.1.11
1 year ago
0.1.12
1 year ago
0.1.13
1 year ago
0.1.14
1 year ago
0.1.15
1 year ago
0.1.0
1 year ago
0.3.0
1 year ago
0.2.1
1 year ago
0.1.2
1 year ago
0.2.0
1 year ago
0.1.1
1 year ago
0.2.7
1 year ago
0.1.16
1 year ago
0.1.8
1 year ago
0.2.6
1 year ago
0.1.17
1 year ago
0.1.7
1 year ago
0.2.9
1 year ago
0.1.18
1 year ago
0.2.8
1 year ago
0.1.19
1 year ago
0.1.9
1 year ago
0.3.2
1 year ago
0.2.3
1 year ago
0.1.4
1 year ago
0.3.1
1 year ago
0.2.2
1 year ago
0.1.3
1 year ago
0.2.5
1 year ago
0.1.6
1 year ago
0.2.4
1 year ago
0.1.5
1 year ago
1.0.0
4 years ago