1.0.7 • Published 1 year ago

react-tagify v1.0.7

Weekly downloads
84
License
MIT
Repository
github
Last release
1 year ago

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:
<Tagify
  onClick={(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.

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago