# tags-input-react

> TagsInput is a simple tagging component ready to drop in your React projects.

Latest version **0.0.5** (published 2020-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install tags-input-react
pnpm add tags-input-react
yarn add tags-input-react
bun add tags-input-react
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2020-02-10 |
| First published | 2020-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 79.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Santhosh Kumar Korimi |
| Maintainers | santhosh1392 |
| Keywords | react, tags, tag input, react-component |

## Links

- npm: https://www.npmjs.com/package/tags-input-react
- Repository: https://github.com/santhosh1392/tags-input-react
- Homepage: https://github.com/santhosh1392/tags-input-react#readme
- Issues: https://github.com/santhosh1392/tags-input-react/issues
- npm.io page: https://npm.io/package/tags-input-react

## Dependencies (4)

- [react](https://npm.io/package/react.md) ^16.12.0
- [webpack](https://npm.io/package/webpack.md) ^2.6.1
- [react-dom](https://npm.io/package/react-dom.md) ^16.12.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2020-02-10
- 0.0.4 — 2020-02-09
- 0.0.3 — 2020-02-09
- 0.0.2 — 2020-02-09
- 0.0.1 — 2020-02-09

## README

# tags-input-react

Tags Input Component

## How to Install

Make sure you have [Node.js](http://nodejs.org/) and NPM installed.

```sh
npm install tags-input-react
```

## Demo

Check demo online [here](http://santhosh.pro/projects#tags-input).

## How to Use

```sh
import React, { Component } from 'react'
import TagsInput from 'tags-input-react'

class TagsInputDemo extends Component {
  constructor() {
    super()
    this.state = {
      tags: []
    }
    this.handleOnChange = this.handleOnChange.bind(this)
  }

  handleOnChange (tags, value) {
    this.setState({
      tags
    })
  }

  render() {
    return (
      <TagsInput
        placeholder='Type here...'
        onChange={this.handleOnChange}
      />
    )
  }
}
```

## Available PropTypes

| Prop Name | Type | Default Value | Description |
| --- | --- | --- | --- |
| tags | array | [] | Array of tags for Pre-populate in Input|
| preventDuplicates | Boolean | true | Preventing duplicates in tags |
| placeholder | string | 'Type here' | Placeholder in input |
| onChange | Function | null | Callback function to get the tags created by user |

---
_Source: https://npm.io/package/tags-input-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
