0.1.9 • Published 5 years ago

react-token v0.1.9

Weekly downloads
278
License
MIT
Repository
github
Last release
5 years ago

react-token

React Token is a easy to use Token/Tag input component. To see use case examples clone this repository and run npm install && npm start.

Installation

  • npm install react-token

Usage

import ReactToken from 'react-token'

<ReactToken
  disabled={<bool>}
  onAdd={<func>}
  onRemove={<func>}
  autocompleteOptions={[<string>, <string>]}
  placeholder="Start Typing"
  selected={[<string>, <string>]}
/>

Props

disabled: Boolean property to determine if the component should allow input

onAdd: Function that is invoked when a token is added to the input

onBlur: Function that is invoked when the input field is no longer focused

onFocus: Function that is invoked when input field is focused

onKeyUp: Function that is invoked when a user types into the input field

onRemove: Function that is invoked when a token is removed

placeholder: Placeholder text for input field

required: Displays "required" text on right hand side

selected: Tokens that will be displayed

0.1.9

5 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago