0.1.0 • Published 4 years ago

react-tag-suggestion v0.1.0

Weekly downloads
5
License
-
Repository
github
Last release
4 years ago

ReactTagSuggestion

This library can be used to create a react tag suggestion box where the items gets listed as tags below the box.

Install

Install with yarn

yarn add react-tag-suggestion

or with npm

npm i react-tag-suggestion

API

ReactTagSuggestion

PropsTypeDefaultDescription
inputValueanynullInput field value
onInputChangefunctionundefinedFuction to handle input change
dataarray[]The data for dropdown. The format should be { value: '', label: ''}
onItemSelectfunctionundefinedFunction to handle item select. Its returns the list of items selected