UNPKG

react-taggle-input

Version:

Simple react tagging Input component. Inspired from taggle.js - Jquery library

36 lines (31 loc) 929 B
## React Taggle Input Simple react tagging Input component. Inspired from taggle.js - Jquery library ## Installation ``` npm install --save react-taggle-input ``` ## Props Prop | Type | Default --- | --- | --- tags | `Array` | `[]` maxTags | `Number` | `0` allowDuplicates | `Boolean` | `false` duplicateTagClass | `String` | `bounce` placeholder | `String` | `Enter the tags` onBeforeTagAdd | `Function` | `undefined` onAfterTagAdd | `Function` | `undefined` onBeforeTagRemove | `Function` | `undefined` onAfterTagRemove | `Function` | `undefined` onInputBlur | `Function` | `undefined` onInputChange | `Function` | `undefined` keyCodesToAddTag | `Array` | `[13]` saveOnBlur | `Boolean` | `false` readOnly | `Boolean` | `false` ## Set up instructions ``` git clone https://github.com/kameshRavi/react-taggle-input.git cd react-taggle-input npm install npm start ``` open [http://localhost:8880/](http://localhost:8880)