All Projects → E-RROR → react-tagify

E-RROR / react-tagify

Licence: MIT license
📛 Powerful Pure React Component For Hashtags and Mentions In Your React App

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-tagify

Highlightr-Plugin
A minimal and aesthetically pleasing highlighting menu that makes color-coded highlighting much easier 🎨.
Stars: ✭ 321 (+1237.5%)
Mutual labels:  highlighting, highlight
Draft Js Plugins
React Plugin Architecture for Draft.js including Slack-Like Emojis, FB-Like Mentions and Stickers
Stars: ✭ 3,918 (+16225%)
Mutual labels:  hashtags, mentions
ember-cli-mentionable
An ember addon for facebook style @mentions and #hashtags
Stars: ✭ 13 (-45.83%)
Mutual labels:  hashtags, mentions
Mark.js
JavaScript keyword highlighting. Mark text with with options that fit every application. Also available as jQuery plugin.
Stars: ✭ 2,004 (+8250%)
Mutual labels:  highlighting, highlight
colocat
Fegeya Colocat, Colorized 'cat' implementation. Written in C++17.
Stars: ✭ 14 (-41.67%)
Mutual labels:  highlighting, highlight
remark-highlight.js
Legacy plugin to highlight code blocks with highlight.js — please use `rehype-highlight` instead
Stars: ✭ 58 (+141.67%)
Mutual labels:  highlighting, highlight
ngx-linkifyjs
Angular V8 wrapper for linkifyjs - library for finding links in plain text and converting them to HTML <a> tags via linkifyjs
Stars: ✭ 40 (+66.67%)
Mutual labels:  hashtags, mentions
Lumin
A JavaScript library to progressively highlight any text on a page.
Stars: ✭ 545 (+2170.83%)
Mutual labels:  highlighting, highlight
Nord Highlightjs
An arctic, north-bluish clean and elegant highlight.js theme.
Stars: ✭ 49 (+104.17%)
Mutual labels:  highlighting, highlight
kirby-highlighter
🌐 Server-side syntax highlighting for the Kirby code block & KirbyText
Stars: ✭ 18 (-25%)
Mutual labels:  highlighting, highlight
resharper-structured-logging
An extension for ReSharper and Rider that highlights structured logging templates and contains some useful analyzers
Stars: ✭ 117 (+387.5%)
Mutual labels:  highlighting
Euro2016 TerminalApp
⚽ Instantly find 🏆EURO 2016 live-streams & highlights, now a Web App!
Stars: ✭ 54 (+125%)
Mutual labels:  highlight
highlight-line
@pulsar-edit package for highlighting the currently selected line.
Stars: ✭ 52 (+116.67%)
Mutual labels:  highlighting
kirby-highlight
Themeable server-side syntax highlighting for Kirby
Stars: ✭ 14 (-41.67%)
Mutual labels:  highlighting
Base2Tone-iterm2
Syntax highlighting colorschemes for iTerm2
Stars: ✭ 29 (+20.83%)
Mutual labels:  highlight
tagify
Tagify produces a set of tags from a given source. Source can be either an HTML page, a Markdown document or a plain text. Supports English, Russian, Chinese, Hindi, Spanish, Arabic, Japanese, German, Hebrew, French and Korean languages.
Stars: ✭ 24 (+0%)
Mutual labels:  tagify
guide
A new feature guide component by react 🧭
Stars: ✭ 597 (+2387.5%)
Mutual labels:  highlight
HighlightTranslator
Highlight Translator can help you to translate the words quickly and accurately. By only highlighting, copying, or screenshoting the content you want to translate anywhere on your computer (ex. PDF, PPT, WORD etc.), the translated results will then be automatically displayed before you.
Stars: ✭ 54 (+125%)
Mutual labels:  highlight
RazorComponents.Markdown
Razor component for Markdown rendering.
Stars: ✭ 30 (+25%)
Mutual labels:  highlighting
Sketch-Highlighter
Sketch plugin that generates highlights for selected text layers
Stars: ✭ 41 (+70.83%)
Mutual labels:  highlight

React Tagify

📛 React Component For Extracting Hashtags, Mentions, Links In Your React App

Install

$ yarn add react-tagify

or

$ npm i react-tagify

Usage

import React from "react";
import ReactDOM from "react-dom";
import { ReactTagify } from "react-tagify";

function App() {
  return (
    <div>
      <ReactTagify 
        colors={"red"} 
        tagClicked={(tag)=> alert(tag)}>
        <p>
          “You might not think that #programmers are #artists,
          but programming is an extremely creative #profession.
          Its logic-based creativity”
          @JohnRomero
        </p>
      </ReactTagify>
    </div>
  );
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

Demo

oie_3162851d5gaPaFm

oie_3163031dwZ6pVBw

oie_3162943PEBY6ic9

oie_31641480Ic8MPad

Use custom styling

Provide custom styling to tags and mentions

import React from "react";
import ReactDOM from "react-dom";
import { ReactTagify } from "react-tagify";

function App() {
  const tagStyle = {
    color: 'red',
    fontWeight: 500,
    cursor: 'pointer'
  };

  const mentionStyle = {
    color: 'green',
    textDecoration: 'underline',
    cursor: 'pointer'
  }

  return (
    <div>
      <ReactTagify 
        tagStyle={tagStyle}
        mentionStyle={mentionStyle}
        tagClicked={(tag) => alert(tag)}
        >
        <p>
          “You might not think that #programmers are #artists,
          but programming is an extremely creative #profession.
          Its logic-based creativity”
          @JohnRomero
        </p>
      </ReactTagify>
    </div>
  );
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

Props/Options

Name Type Default Description
tagClicked PropTypes.func null Trigger a function and Its Return You The Tag Clicked
colors PropTypes.string '#0073e6' (Navy Blue) Custom Color on Tags
tagStyle PropTypes.object undefined Custom style for tags
linkStyle PropTypes.object undefined Custom style for links
mentionStyle PropTypes.object undefined Custom style for mentions
detectHashtags PropTypes.bool true detecting Hashtags enabled
detectMentions PropTypes.bool true detecting Mentions enabled
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].