react-tag-input-component
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "react-tag-input-component", | ||
"description": "lightweight component for tag(s) input", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": "Harsh Zalavadiya", |
@@ -56,12 +56,12 @@ # react-tag-input-component | ||
| 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`, `,`) | `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` | | | ||
@@ -68,0 +68,0 @@ ## 💅 Themeing |
42742