Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@emoji-mart/react
Advanced tools
@emoji-mart/react is a comprehensive emoji picker component for React applications. It provides a customizable and easy-to-use interface for selecting emojis, supporting various categories, skin tones, and search functionalities.
Emoji Picker
The basic emoji picker component allows users to select emojis. The selected emoji is logged to the console in this example.
import { Picker } from '@emoji-mart/react';
function App() {
return <Picker onEmojiSelect={console.log} />;
}
Customizable Emoji Picker
The emoji picker can be customized with different themes, such as 'dark' mode, to better fit the application's design.
import { Picker } from '@emoji-mart/react';
function App() {
return <Picker theme="dark" onEmojiSelect={console.log} />;
}
Search Functionality
The emoji picker includes a search bar to allow users to quickly find specific emojis.
import { Picker } from '@emoji-mart/react';
function App() {
return <Picker onEmojiSelect={console.log} showSearch={true} />;
}
Skin Tone Selector
The emoji picker supports selecting different skin tones for applicable emojis.
import { Picker } from '@emoji-mart/react';
function App() {
return <Picker onEmojiSelect={console.log} showSkinTones={true} />;
}
emoji-picker-react is another popular emoji picker for React applications. It offers a simple and intuitive interface for selecting emojis, but it may not have as many customization options as @emoji-mart/react.
react-emoji-picker provides a straightforward emoji picker component for React. It is lightweight and easy to integrate but might lack some advanced features like skin tone selection and extensive customization.
emoji-mart is the original emoji picker library that @emoji-mart/react is based on. It offers similar functionalities but is designed for vanilla JavaScript rather than React specifically.
@emoji-mart/react
A React wrapper for EmojiMart.
npm install --save emoji-mart @emoji-mart/data @emoji-mart/react
import data from '@emoji-mart/data'
import Picker from '@emoji-mart/react'
function App() {
return (
<Picker data={data} onEmojiSelect={console.log} />
)
}
FAQs
React wrapper for Emoji Mart; the emoji picker for the web.
The npm package @emoji-mart/react receives a total of 202,269 weekly downloads. As such, @emoji-mart/react popularity was classified as popular.
We found that @emoji-mart/react 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.