@@ -55,20 +55,21 @@ export default Example;
5555
5656## 👀 Props
5757
58- | Prop | Description | Type | Default |
59- | ------------------- | ------------------------------------------------------------------------------- | -------------------------------------------------- | ----------- |
60- | ` name ` | value for name of input | ` string ` | |
61- | ` placeholder ` | placeholder for text input | ` string ` | |
62- | ` value ` | initial tags | ` string[] ` | ` [] ` |
63- | ` onChange ` | onChange callback (added/removed) | ` string[] ` | |
64- | ` classNames ` | className for styling input and tags (i.e {tag:'tag-cls', input: 'input-cls'}) | ` object[tag, input] ` | |
65- | ` onKeyUp ` | input ` onKeyUp ` callback | ` event ` | |
66- | ` onBlur ` | input ` onBlur ` callback | ` event ` | |
67- | ` seprators ` | when to add tag (i.e. ` Space ` ,` Enter ` ) | ` string[] ` | ` ["Enter"] ` |
68- | ` onExisting ` | if tag is already added then callback | ` (tag: string) => void ` | |
69- | ` onRemoved ` | on tag removed callback | ` (tag: string) => void ` | |
70- | ` beforeAddValidate ` | Custom validation before adding tag | ` (tag: string, existingTags: string[]) => boolean ` | |
71- | ` isEditOnRemove ` | Remove the tag but keep the word in the input to edit it on using Backscape Key | ` boolean ` | ` false ` |
58+ | Prop | Description | Type | Default |
59+ | ------------------- | ------------------------------------------------------------------------------- | -------------------------------------------------- | --------------- |
60+ | ` name ` | value for name of input | ` string ` | |
61+ | ` placeholder ` | placeholder for text input | ` string ` | |
62+ | ` value ` | initial tags | ` string[] ` | ` [] ` |
63+ | ` onChange ` | onChange callback (added/removed) | ` string[] ` | |
64+ | ` classNames ` | className for styling input and tags (i.e {tag:'tag-cls', input: 'input-cls'}) | ` object[tag, input] ` | |
65+ | ` onKeyUp ` | input ` onKeyUp ` callback | ` event ` | |
66+ | ` onBlur ` | input ` onBlur ` callback | ` event ` | |
67+ | ` seprators ` | when to add tag (i.e. ` Space ` ,` Enter ` ) | ` string[] ` | ` ["Enter"] ` |
68+ | ` removers ` | Remove last tag if textbox empty and ` Backspace ` is pressed | ` string[] ` | ` ["Backspace"] ` |
69+ | ` onExisting ` | if tag is already added then callback | ` (tag: string) => void ` | |
70+ | ` onRemoved ` | on tag removed callback | ` (tag: string) => void ` | |
71+ | ` beforeAddValidate ` | Custom validation before adding tag | ` (tag: string, existingTags: string[]) => boolean ` | |
72+ | ` isEditOnRemove ` | Remove the tag but keep the word in the input to edit it on using Backscape Key | ` boolean ` | ` false ` |
7273
7374## 💅 Themeing
7475
0 commit comments