npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-input-tags

v3.0.3

Published

React component for inputting tags

Readme

react-input-tags | demo

React component for tagging inputs.

example

npm version dependencies travis-ci status

Getting Started

Install Package

npm install --save react-input-tags

Use Package

import React from 'react';
import { InputTagsContainer } from 'react-input-tags';

export class TagsExample extends React.Component {
  state = {
    tags: [],
  }

  handleUpdateTags = (tags) => {
    this.setState({ tags });
  }

  render() {
    return (
      <InputTagsContainer
        tags={this.state.tags}
        handleUpdateTags={this.handleUpdateTags}
      />
    );
  }
}

API

Both the high-level InputTagsContainer component or the low-level InputTags component are exported for use.

InputTagsContainer

|Property|Type|Required|Description| |--------|----|:-----:|-----------| |tags|Array|✓|An array of data that represents the value of the tags| |handleUpdateTags|Function|✓|A function called when the value of tags changes, passes the tags value as an argument.| |getTagValue|Function||A function called when a tag is edited, passes the tag as an argument.| |createTag|Function||A function called when a tag is to be inserted, passes the input value as an argument.| |inputPlaceholder|String||The placeholder to populate the input with| |inputTabIndex|Number||The tab index for the input| |inputMaxWidth|Number||The max width the input can take up in pixels| |suggestions|Array||An array of data that represents the value of the suggestions| |handleUpdateSuggestions|Function||A function called when the value of input changes, passes the input value as an argument.| |getSuggestionValue|Function||A function called when a suggestion is selected, passes the suggestion value as an argument.| |suggestionsAreLoading|Boolean||Whether the suggestions are loading or not.| |InputTagsContainerImplementation|Function||A function called when InputTagsContainer component is to be rendered.| |InputTagsImplementation|Function||A function called when InputTags component is to be rendered.| |InputImplementation|Function||A function called when Input component is to be rendered.| |TagImplementation|Function||A function called when Tag component is to be rendered.| |SuggestionListImplementation|Function||A function called when SuggestionList component is to be rendered.| |SuggestionImplementation|Function||A function called when Suggestion component is to be rendered.| |SuggestionsLoaderImplementation|Function||A function called when SuggestionsLoader component is to be rendered.| |InputTagsClassName|String||A class for the InputTags component.| |InputClassName|String||A class for the Input component.| |TagClassName|String||A class for the Tag component.| |SuggestionListClassName|String||A class for the SuggestionList component.| |SuggestionClassName|String||A class for the Suggestion component.| |SuggestionsLoaderClassName|String||A class for the SuggestionsLoader component.|

InputTags

|Property|Type|Required|Description| |--------|----|:-----:|-----------| |tags|Array|✓|An array of data that represents the value of the tags| |handleInsert|Function|✓|A function called when a tag will be inserted, passes the current tags value and new tag value as arguments.| |handleRemove|Function|✓|A function called when a tag will be removed, passes the current tags value and index of the tag to be removed as arguments.| |getTagValue|Function||A function called when a tag is edited, passes the tag as an argument.| |createTag|Function||A function called when a tag is to be inserted, passes the input value as an argument.| |inputPlaceholder|String||The placeholder to populate the input with| |inputTabIndex|Number||The tab index for the input| |inputMaxWidth|Number||The max width the input can take up in pixels| |suggestions|Array||An array of data that represents the value of the suggestions| |handleUpdateSuggestions|Function||A function called when the value of input changes, passes the input value as an argument.| |getSuggestionValue|Function||A function called when a suggestion is selected, passes the suggestion value as an argument.| |suggestionsAreLoading|Boolean||Whether the suggestions are loading or not.| |InputTagsImplementation|Function||A function called when InputTags component is to be rendered.| |InputImplementation|Function||A function called when Input component is to be rendered.| |TagImplementation|Function||A function called when Tag component is to be rendered.| |SuggestionListImplementation|Function||A function called when SuggestionList component is to be rendered.| |SuggestionImplementation|Function||A function called when Suggestion component is to be rendered.| |SuggestionsLoaderImplementation|Function||A function called when SuggestionsLoader component is to be rendered.| |InputTagsClassName|String||A class for the InputTags component.| |InputClassName|String||A class for the Input component.| |TagClassName|String||A class for the Tag component.| |SuggestionListClassName|String||A class for the SuggestionList component.| |SuggestionClassName|String||A class for the Suggestion component.| |SuggestionsLoaderClassName|String||A class for the SuggestionsLoader component.|