Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Repository files navigation

React Tagify Promo Tweet

✨ React Tagify #️@

Empower your React applications with effortless #tag and @mention support ❤️

React Tagify is a powerful and pure React component for handling hashtags and mentions in your React app with ease. Give your users the ability to mention others and add tags to their content seamlessly.

For more information and demo, visit our website here.

Features

  • 🚀 Easy to integrate
  • 🎨 Customizable colors and styles
  • 🔗 Supports #HashTags and @Mentions
  • 📦 Lightweight

Installation

Install the package using npm or yarn:

npm i react-tagify

or

yarn add react-tagify

Usage

  1. Import the Tagify component:
import{Tagify}from'react-tagify';
  1. Wrap your content with the Tagify component:
<TagifyonClick={(text,type)=>console.log(text,type)}><p>
This is a #React component with help of #ReactTagify!
</p></Tagify>

Props

PropTypeDefaultDescription
childrenReactNode-The content to be processed for tags and mentions.
colorstring'#0073e6'The color of the tags and mentions.
onClickfunction-A callback function that is called when a tag or mention is clicked. Receives the clicked element as an argument and type of it
tagStyleobject-The CSS style object for hashtag styling.
mentionStyleobject-The CSS style object for mention styling.
detectHashtagsbooleantrueEnable or disable the detection of hashtags.
detectMentionsbooleantrueEnable or disable the detection of mentions.

Contributing

Please feel free to contribute by submitting a pull request or reporting any issues you encounter while using this component.

License

React Tagify is licensed under the MIT License.

About

✨ Empower React applications with effortless #tag and @mention support

Topics

Resources

Code of conduct

Contributing

Stars

32 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages