
Description
React-tags is a tagging component for React that you can drop into an existing project. It lets people add and remove tags in an input field, and its design takes cues from the To field in Gmail's compose window. As you type, it can show autocomplete suggestions from a list you supply, and it works with both the keyboard and the mouse. Tags can be reordered by dragging, edited after they are entered, and cleared all at once with an optional button. The project was started by Prakhar Srivastav and is now maintained by Aakansha Doshi. It installs from npm or Yarn together with its peer dependencies. Its drag-and-drop uses the react-dnd library, which needs a top-level backend context. If your app already uses react-dnd, you can import the component without adding another context. The source is public on GitHub, with a demo and an API reference in the docs.…
Highlights
- Autocomplete from a list of suggestions
- Keyboard and mouse support
- Drag and drop to reorder tags
- Edit tags after they are added
- Optional clear-all button
Ratings & Reviews
No ratings yet
Be the first to rate react-tag-input.
People also visit

@webscopeio/react-textarea-autocomplete
Offers autocomplete over textarea in style of GitHub
react-tag-input FAQ
What is react-tags?
A React component for entering and managing tags, inspired by the To field in Gmail's compose window.
How do I install it?
Install it from npm or Yarn, along with its peer dependencies. You start it with a list of initial tags and a list of suggestions.
Does it need react-dnd?
It uses react-dnd for drag and drop. If your app already has a react-dnd backend, import the component without the extra context; otherwise import it with the backend included.
Which features does it have?
Autocomplete from suggestions, keyboard and mouse input, drag-and-drop reordering, editing of tags and an optional clear-all button.
Is react-tags open source?
Yes. Its source code is public on GitHub at react-tags/react-tags.
What are the best react-tag-input alternatives?
Popular alternatives to react-tag-input include react-tagsinput, emblor and @webscopeio/react-textarea-autocomplete. See all react-tag-input alternatives















