Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emoji-mart

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoji-mart

Emoji picker for the web

  • 5.3.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
177K
decreased by-59.84%
Maintainers
2
Weekly downloads
 
Created

What is emoji-mart?

emoji-mart is a comprehensive emoji picker component for React applications. It provides a user-friendly interface for selecting emojis, supports custom emojis, and offers various customization options.

What are emoji-mart's main 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';
import 'emoji-mart/css/emoji-mart.css';

function App() {
  return (
    <div>
      <Picker onSelect={emoji => console.log(emoji)} />
    </div>
  );
}

Custom Emoji Set

Allows the addition of custom emojis to the picker. In this example, a custom emoji is added and can be selected.

import { Picker } from 'emoji-mart';
import 'emoji-mart/css/emoji-mart.css';

const customEmojis = [
  {
    id: 'custom1',
    name: 'Custom Emoji 1',
    short_names: ['custom1'],
    text: '',
    emoticons: [],
    keywords: ['custom', 'emoji'],
    imageUrl: 'https://example.com/custom1.png'
  }
];

function App() {
  return (
    <div>
      <Picker set='custom' custom={customEmojis} onSelect={emoji => console.log(emoji)} />
    </div>
  );
}

Emoji Search

Provides a search functionality within the emoji picker. Users can search for emojis by keywords.

import { Picker } from 'emoji-mart';
import 'emoji-mart/css/emoji-mart.css';

function App() {
  return (
    <div>
      <Picker onSelect={emoji => console.log(emoji)} showPreview={false} showSkinTones={false} />
    </div>
  );
}

Customizable Skin Tones

Allows users to select different skin tones for emojis. This example shows the skin tone selector in the picker.

import { Picker } from 'emoji-mart';
import 'emoji-mart/css/emoji-mart.css';

function App() {
  return (
    <div>
      <Picker onSelect={emoji => console.log(emoji)} showSkinTones={true} />
    </div>
  );
}

Other packages similar to emoji-mart

Keywords

FAQs

Package last updated on 11 Nov 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc