2.2.27 • Published 2 months ago

react-emoji-search v2.2.27

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

React emoji search

Demo

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

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

2.2.27

2 months ago

2.2.26

1 year ago

2.2.17

2 years ago

2.2.1

2 years ago

2.0.3

2 years ago

2.2.18

2 years ago

2.2.0

2 years ago

2.0.2

2 years ago

2.2.15

2 years ago

2.2.3

2 years ago

2.2.16

2 years ago

2.2.2

2 years ago

2.0.4

2 years ago

2.2.13

2 years ago

2.2.5

2 years ago

2.0.7

2 years ago

2.2.14

2 years ago

2.2.4

2 years ago

2.0.6

2 years ago

2.2.11

2 years ago

2.2.7

2 years ago

2.0.9

2 years ago

2.2.12

2 years ago

2.2.6

2 years ago

2.0.8

2 years ago

2.2.10

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

2.2.19

2 years ago

2.2.24

2 years ago

2.2.25

2 years ago

2.2.22

2 years ago

2.2.23

2 years ago

2.2.20

2 years ago

2.2.21

2 years ago

2.0.15

2 years ago

2.0.16

2 years ago

2.0.13

2 years ago

2.0.14

2 years ago

2.0.11

2 years ago

2.0.12

2 years ago

2.0.10

2 years ago

2.1.0

2 years ago

2.2.9

2 years ago

2.2.8

2 years ago

2.0.17

2 years ago

2.0.18

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago