0.3.2 • Published 1 year ago

textarea-autocomplete v0.3.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

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

PropsTypeDescription
suggestionsArraylist of values for autocomplete
handleInputCallbackcalled when input is changed with input text as argument
editableStyleobjectstyle object for div edit
placeholderstringplaceholder
showSuggestionWithNoInputboolshow suggestion without entering any input, ex on space
showSuggestionStartsWithboolshow suggestion which starts with input entered
valuestringupdate innerText by passing the value or null to not affect the innerText
handleFocusfunccalled when textarea is focussed
tabIndexstring

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