
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
react-tagify
Advanced tools
Empower your React applications with effortless #tag and @mention support
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.
Install the package using npm or yarn:
npm i react-tagify
or
yarn add react-tagify
import { Tagify } from 'react-tagify';
<Tagify
onClick={(text, type) => console.log(text, type)}
>
<p>
This is a #React component with help of #ReactTagify!
</p>
</Tagify>
Prop | Type | Default | Description |
---|---|---|---|
children | ReactNode | - | The content to be processed for tags and mentions. |
color | string | '#0073e6' | The color of the tags and mentions. |
onClick | function | - | A callback function that is called when a tag or mention is clicked. Receives the clicked element as an argument and type of it |
tagStyle | object | - | The CSS style object for hashtag styling. |
mentionStyle | object | - | The CSS style object for mention styling. |
detectHashtags | boolean | true | Enable or disable the detection of hashtags. |
detectMentions | boolean | true | Enable or disable the detection of mentions. |
Please feel free to contribute by submitting a pull request or reporting any issues you encounter while using this component.
React Tagify is licensed under the MIT License.
FAQs
Empower your React applications with effortless #tag and @mention support
The npm package react-tagify receives a total of 279 weekly downloads. As such, react-tagify popularity was classified as not popular.
We found that react-tagify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).