react-labels-input
react labels input
Installation
npm install react-labels-input --save
Usage
;; var data = 'apple' 'banana' 'cheery'; { console; console;} { console; console;} React;
Props
LabelsInputpropTypes = labels: PropTypesarray add: PropTypesfunc remove: PropTypesfunc data: PropTypesarray classPrefix: PropTypesstring
labels
: default labels in inputdata
: typeahead dataadd
: trigger when added a labelremove
: trigger when removed a labelclassPrefix
: className prefix
Development
gulp dev
Build
gulp build