All Projects β†’ lang-ai β†’ react-tags-input

lang-ai / react-tags-input

Licence: other
[Not Actively Maintained] An input control that handles tags interaction with copy-paste and custom type support.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-tags-input

Tagify
πŸ”– lightweight, efficient Tags input component in Vanilla JS / React / Angular / Vue
Stars: ✭ 2,305 (+8765.38%)
Mutual labels:  tags, react-component
metadata-action
GitHub Action to extract metadata (tags, labels) from Git reference and GitHub events for Docker
Stars: ✭ 492 (+1792.31%)
Mutual labels:  tags
picker
πŸ“… All Date Pickers you need.
Stars: ✭ 185 (+611.54%)
Mutual labels:  react-component
phoenix meta tags
Phoenix library helps generating meta tags for website.
Stars: ✭ 25 (-3.85%)
Mutual labels:  tags
react-native-tabbar
A tabbar component for React Native
Stars: ✭ 59 (+126.92%)
Mutual labels:  react-component
react-timer-wrapper
Composable React Timer component that passes status props to children, in addition to some basic callbacks. Can be used at a countdown timer ⏲ or as stopwatch ⏱ to track time while active.
Stars: ✭ 14 (-46.15%)
Mutual labels:  react-component
best-of-react
πŸ† A ranked list of awesome React open-source libraries and tools. Updated weekly.
Stars: ✭ 364 (+1300%)
Mutual labels:  react-component
git-issue-react-electronjs
βš™οΈ. βš›οΈ. A desktop application created with Electronjs and Reactjs to be cross-platform to manage and track GitHub issues.
Stars: ✭ 21 (-19.23%)
Mutual labels:  react-component
SSCTaglistView
Customizable iOS tag list view, in Swift.
Stars: ✭ 54 (+107.69%)
Mutual labels:  tags
react-scroll-trigger
πŸ“œ React component that monitors scroll events to trigger callbacks when it enters, exits and progresses through the viewport. All callback include the progress and velocity of the scrolling, in the event you want to manipulate stuff based on those values.
Stars: ✭ 126 (+384.62%)
Mutual labels:  react-component
react-mason
React Masonry grid
Stars: ✭ 13 (-50%)
Mutual labels:  react-component
Registration-and-Login-using-MERN-stack
Simple Registration and Login component with MERN stack
Stars: ✭ 210 (+707.69%)
Mutual labels:  react-component
react-dates
An easily internationalizable, mobile-friendly datepicker library for the web
Stars: ✭ 12,032 (+46176.92%)
Mutual labels:  react-component
Spectra
Spectra is a multi-purpose, for-fun and for-utility Discord bot!
Stars: ✭ 101 (+288.46%)
Mutual labels:  tags
Tags
Exploring usage of custom tags with ScriptableObjects in Unity
Stars: ✭ 77 (+196.15%)
Mutual labels:  tags
AutoTags
ζ ‡η­Ύθ‡ͺεŠ¨η”Ÿζˆζ’δ»Ά For Typecho
Stars: ✭ 53 (+103.85%)
Mutual labels:  tags
React-Express-JWT-UserPortal
React.js & Express.js User portal Using Core UI, JWT, JWT Token, Refresh Token, Role & Permission management, User manamgenet, Event Log.
Stars: ✭ 22 (-15.38%)
Mutual labels:  react-component
react-grid
react grid component
Stars: ✭ 17 (-34.62%)
Mutual labels:  react-component
react-textarea-code-editor
A simple code editor with syntax highlighting.
Stars: ✭ 247 (+850%)
Mutual labels:  react-component
react-ratings-declarative
A customizable rating component for selecting x widgets or visualizing x widgets
Stars: ✭ 41 (+57.69%)
Mutual labels:  react-component

This repository is not being actively maintained

React-Tags-Input

An input control that handles tags interaction with copy-paste and custom type support.

demo

Live Playground

For examples of the tags input in action, check the demo page

Installation

The easiest way to use it is by installing it from NPM and include it in your own React build process.

npm install @sentisis/react-tags-input --save

Usage

Example usage:

import React from 'react';
import TagsInput from '@sentisis/react-tags-input';
// Either a copy of our demo CSS or your custom one
import './TagsInput.css';

export default class Demo extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      tags: [],
    };
  }

  render() {
    return (
      <TagsInput
        label="Tags"
        placeholder="Write tags"
        tags={this.state.tags}
        onChange={tags => this.setState({ tags })}
      />
    );
  }
}

API

Currently the component listen to the following keys: enter, esc, backspace, mod+a, mod+c and mod+v (for copy/paste).

It supports a keyboard-only copy paste (using mod+a).

copy-paste-demo

Each tag you will be passing should have the following shape:

Property Type Required Description
value String true Tag value
special Boolean false Special marks the tag as different. For example a special tag when using the case-sensitive options is a case-sensitive tag

The TagsInput component contains the following properties:

Property Type Default Description
tags Array<Tags> [] Array of tags to display
label String undefined Rendered above the field itself
placeholder String undefined Input placeholder
error String undefined Error message rendered below the field. When the field is set it will also have the class is-error
tagRenderer Function undefined Optional function that gets used to render the tag
copyButton Boolean false Renders a copy to clipboard button
copyButtonLabel String Copy to clipboard Label for the copy to clipboard button
blacklistChars Array<String> [','] Characters not allowed in the tags. Must always contain ,
specialTags Boolean false Enable the creation of special tags
specialButtonRenderer Function undefined Function that gets used to render the special button
specialButtonLabel String Special Label for the special button. Only used when a specialButtonRenderer is not defined
onChange Function noop Fired when changing the tags with the tags array as the argument
onBlur Function noop Fired as the standard React SyntheticEvent
onFocus Function noop Fired as the standard React SyntheticEvent
onSubmit Function noop Fired when the user interaction is considered complete, invoked with tags
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].