react-search-input-tag
Advantage
It try to have basic style and customize easier.
You can find *className
options.
Examples
I recommend you to see /examples
Usage
<SearchInputTagvalue=valueitemList= id: 1 value: 'korea' ...itemListthrottle=100notExist=<span>You can add `Tag` if any user can not find the item</span>onChange= {this}onSelect= {this}/>
Options
SearchInputTagdefaultProps =value: '' // value{ } // onSelect{ } // onChangeitemList: // search ListInputElement: <input /> // default `input` tagplaceholder: '' // tag's placeholderthrottle: 0 // setTimeout then execute `onChange`notExist: null // If any user can't find the item on your results, You can show one `li` tag{ } // when this input focused in{ } // when this input focused out{ } // when you typed arrow keyswrapperClassName: '' // wrapper's classNameclassName: '' // input's classNameulClassName: '' // ul's classNameliClassName: '' // li's classNamematchedWordClassName: '' // matched word's classNameunmatchedWordClassName: '' // un-matched word's classNameenotExistClassName: '' // notExist's classNameSearchInputTagpropTypes =// requiredvalue: PropTypesstringisRequiredonChange: PropTypesfuncisRequiredonSelect: PropTypesfuncisRequireditemList: PropTypes// not requirednotExist: PropTypeselementInputElement: PropTypeselementplaceholder: PropTypesstringthrottle: PropTypesnumberonKeyDown: PropTypesfunconBlur: PropTypesfunconFocus: PropTypesfuncwrapperClassName: PropTypesstringclassName: PropTypesstringulClassName: PropTypesstringliClassName: PropTypesstringmatchedWordClassName: PropTypesstringunmatchedWordClassName: PropTypesstringnotExistClassName: PropTypesstring
License
Others...
Get more feedback
- If you got an error using my library, Please email me or leave an issue. I'll fix ya immediately.
- Any PR, Thanks.
Anyway, I'm happy to help you