0.2.0 • Published 7 years ago

react-input-suggest v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

React-Input-Suggest

React component for inputing tag. Build for my own projects, but if you have cool or features, all forms of contributian are welcome.

Usage

Props

NameTypeDefault PropsDescription
onAddTagFunctionundefinedWhen the added new tag
onRemoveTagFunctionundefinedWhen the removed tag
addTagKeysArray[13,9,40]Array of accepted adding keys
removeTagKeysArray[8, 27]Array of accepted removing keys
readOnlyBoolfalseit specifies that an input field is read-only
isSuggestListBooltrueif show suggestion list
suggestionsArray[]List of suggestion values
suggestionValueNameStringnameName of property value for suggestions
placeholderString'Add new tag'field placeholder, for input component when input without value

Example

To run example locally, clone this repo then run:

make run-example

After open localhost:8000 (or what port you using in process.env.PORT) in a browser.

License

MIT Licensed.

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.41

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago