New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-emoji-search

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-emoji-search

Whatsapp like emoji picker

latest
Source
npmnpm
Version
2.2.27
Version published
Maintainers
1
Created
Source
Emoji picker displayed just like Whatsapp.

Demo

Build StatusBuild StatusBuild Status

Features:

  • Fully customizable
  • Faster load for high quality emojis
  • Emojis skin tones
  • Recently used emojis support
  • Emoji sets: facebook, apple, google and twitter
  • light and dark mode
Buy Me A Coffee

Installation

npm install react-emoji-search

Usage

Emoji Picker

import React from "react";
import { EmojiPicker, Emoji } from "react-emoji-search";

<EmojiPicker set="apple" />

<EmojiPicker set="apple" emojiSize={24} emojiSpacing={8}/>
<EmojiPicker emojiVersion={12.0}/>
<EmojiPicker onEmojiClick={(emoji) => setEmoji(emoji)} />
<EmojiPicker
  styles={{
    backgroundColor: "#2e4960",
    indicatorColor: "#b04c2d",
    fontColor: "lightgrey",
    searchBackgroundColor: "#263d51",
    tabsFontColor: "#8cdce4",
    searchFontColor: "lightgrey",
    skinTonePickerBackgroundColor: "#284155",
  }}
/>

Properties

NameTypeDefaultDescription
setstringappleEmoji icon set: apple,facebook,twitter,google, native
emojiSizenumber32Emojis size for the picker
sheetSizestring64The emoji sheet sizes are: 32,64
emojiSpacingnumber12Gap between emojis
emojiVersionnumber12.1version of the emoji list
qualitystringcleanquality of the spreadsheet; 128,256,clean
modestringdarkSwitch between dark and light
onEmojiClickFunctionundefinedReturns the native emoji
tabsVariantstringdefaultSet to fullWidth or default
stylesObjectundefinedCustomize the picker elements such as indicator color, background color and fonts

Styling

You can make the picker adjust to your needs with the following props:

// styles
{
  backgroundColor: "...",
  indicatorColor: "...",
  fontColor: "...",
  tabsFontColor: "...",
  searchFontColor: "...",
  variationPickerBackgroundColor: "...",
}

Sprite Sheets

The sprite sheets comes from jsDelivr thanks to emoji-datasource package.

You can check the used sprite sheets through these links:

Emoji

Get emoji from native. This component will attempt to find the emoji and render from the specified set. If not found it will render interrogation emoji (❓).

import React from "react";
import { Emoji } from "react-emoji-search";

<Emoji unicode="✌🏽" />
<Emoji unicode="🥸" set="facebook" size={24} />
<Emoji unicode="👀" set="twitter" quality="256" />

Properties

NameTypeDefaultDescription
unicodestringNative emoji
sizenumber32Width and height of the emoji
setstringappleEmoji icon set: apple,facebook,twitter,google, native
qualitystringcleanquality of the spreadsheet; 128,256,clean

When you set styles, it will override dark and light mode colors

Keywords

emoji

FAQs

Package last updated on 17 Mar 2024

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