Skip to content

Commit 84dd1ff

Browse files
chore: 📝 updated docs
1 parent 7f47bae commit 84dd1ff

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,17 @@ 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-
| `onBlur` | input `onBlur` callback | `event` | |
65-
| `seprators` | when to add tag (i.e. `Space`,`Enter`) | `string[]` | `["Enter"]` |
66-
| `onExisting` | if tag is already added then callback | `(tag: string) => void` | |
67-
| `onRemoved` | on tag removed callback | `(tag: string) => void` | |
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+
| `onBlur` | input `onBlur` callback | `event` | |
65+
| `seprators` | when to add tag (i.e. `Space`,`Enter`) | `string[]` | `["Enter"]` |
66+
| `onExisting` | if tag is already added then callback | `(tag: string) => void` | |
67+
| `onRemoved` | on tag removed callback | `(tag: string) => void` | |
68+
| `beforeAddValidate` | Custom validation before adding tag | `(tag: string, existingTags: string[]) => boolean` | |
6869

6970
## 💅 Themeing
7071

0 commit comments

Comments
 (0)