Skip to content

Commit

Permalink
chore: 📝 updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
harshzalavadiya authored Aug 2, 2022
1 parent 7f47bae commit 84dd1ff
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,17 @@ export default Example;

## 👀 Props

| Prop | Description | Type | Default |
| ------------- | -------------------------------------- | ----------------------- | ----------- |
| `name` | value for name of input | `string` | |
| `placeholder` | placeholder for text input | `string` | |
| `value` | initial tags | `string[]` | `[]` |
| `onChange` | onChange callback (added/removed) | `string[]` | |
| `onBlur` | input `onBlur` callback | `event` | |
| `seprators` | when to add tag (i.e. `Space`,`Enter`) | `string[]` | `["Enter"]` |
| `onExisting` | if tag is already added then callback | `(tag: string) => void` | |
| `onRemoved` | on tag removed callback | `(tag: string) => void` | |
| Prop | Description | Type | Default |
| ------------------- | -------------------------------------- | -------------------------------------------------- | ----------- |
| `name` | value for name of input | `string` | |
| `placeholder` | placeholder for text input | `string` | |
| `value` | initial tags | `string[]` | `[]` |
| `onChange` | onChange callback (added/removed) | `string[]` | |
| `onBlur` | input `onBlur` callback | `event` | |
| `seprators` | when to add tag (i.e. `Space`,`Enter`) | `string[]` | `["Enter"]` |
| `onExisting` | if tag is already added then callback | `(tag: string) => void` | |
| `onRemoved` | on tag removed callback | `(tag: string) => void` | |
| `beforeAddValidate` | Custom validation before adding tag | `(tag: string, existingTags: string[]) => boolean` | |

## 💅 Themeing

Expand Down

0 comments on commit 84dd1ff

Please sign in to comment.