missive/emoji-mart sits at 9.4k stars on GitHub, written primarily in TypeScript. πͺ One component to pick them all
Snapshot summary built from the project's own GitHub metadata β there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then β see the READ ME tab for the original README in full.
Emoji Mart is a customizable emoji picker HTML component for the web
Demo
Brought to you by the Missive team
π Table of Contents
πΎ Data
πͺ Picker
π Emoji component
π΅οΈββοΈ Headless search
π¬ Get emoji data from native
πΊ Internationalization
π Examples
π€ Built for modern browsers
π Development
πΎ Data
Data required for the picker to work has been completely decoupled from the library. That gives developers the flexibility to better control their app bundle size and let them choose how and when this data is loaded. Data can be:
Bundled directly into your codebase
Pros: Picker renders instantly, data is available offline
Cons: Slower initial page load (bigger file to load)
yarn add @emoji-mart/data
import data from '@emoji-mart/data'
import { Picker } from 'emoji-mart'
new Picker({ data })
Fetched remotely
Pros: Data fetched only when needed, does not affect your app bundle size
Cons: Network latency, doesnβt work offline (unless you configure a ServiceWorker)
import data from '@emoji-mart/data'
import Picker from '@emoji-mart/react'
function App() {
return (
<Picker data={data} onEmojiSelect={console.log} />
)
}
Categories to show in the picker. Order is respected.
custom
[]
Custom emojis
onEmojiSelect
null
Callback when an emoji is selected
onClickOutside
null
Callback when a click outside of the picker happens
onAddCustomEmoji
null
Callback when the Add custom emoji button is clicked. The button will only be displayed if this callback is provided. It is displayed when search returns no results.
autoFocus
false
Whether the picker should automatically focus on the search input
categoryIcons
{}
Custom category icons
dynamicWidth
false
Whether the picker should calculate perLine dynamically based on the width of <em-emoji-picker>. When enabled, perLine is ignored
emojiButtonColors
[]
i.e. #f00, pink, rgba(155,223,88,.7)
An array of color that affects the hover background color
emojiButtonRadius
100%
i.e. 6px, 1em, 100%
The radius of the emoji buttons
emojiButtonSize
36
The size of the emoji buttons
emojiSize
24
The size of the emojis (inside the buttons)
emojiVersion
14
1, 2, 3, 4, 5, 11, 12, 12.1, 13, 13.1, 14
The version of the emoji data to use. Latest version supported in @emoji-mart/data is currently 14
exceptEmojis
[]
List of emoji IDs that will be excluded from the picker
icons
auto
auto, outline, solid
The type of icons to use for the picker. outline with light theme and solid with dark theme.
locale
en
en, ar, be, cs, de, es, fa, fi, fr, hi, it, ja, ko, nl, pl, pt, ru, sa, tr, uk, vi, zh
The locale to use for the picker
maxFrequentRows
4
The maximum number of frequent rows to show. 0 will disable frequent category
navPosition
top
top, bottom, none
The position of the navigation bar
noCountryFlags
false
Whether to show country flags or not. If not provided, tbhis is handled automatically (Windows doesnβt support country flags)
noResultsEmoji
cry
The id of the emoji to use for the no results emoji
perLine
9
The number of emojis to show per line
previewEmoji
point_up
The id of the emoji to use for the preview when not hovering any emoji. point_up when preview position is bottom and point_down when preview position is top.
previewPosition
bottom
top, bottom, none
The position of the preview
searchPosition
sticky
sticky, static, none
The position of the search input
set
native
native, apple, facebook, google, twitter
The set of emojis to use for the picker. native being the most performant, others rely on spritesheets.
skin
1
1, 2, 3, 4, 5, 6
The emojis skin tone
skinTonePosition
preview
preview, search, none
The position of the skin tone selector
theme
auto
auto, light, dark
The color theme of the picker
getSpritesheetURL
null
A function that returns the URL of the spritesheet to use for the picker. It should be compatible with the data provided.
Custom emojis
You can use custom emojis by providing an array of categories and their emojis. Emojis also support multiple skin tones and can be GIFs or SVGs.
You can use custom category icons by providing an object with the category name as key and the icon as value. Currently supported formats are svg string and src. See example.
The emoji web component usage is the same no matter what library you use.
First, you need to make sure data has been initialized. You need to call this only once per page load. Note that if you call init like this, you donβt necessarily need to include data in your Picker props. It doesnβt hurt either, it will noop.
import data from '@emoji-mart/data'
import { init } from 'emoji-mart'
init({ data })
Then you can use the emoji component in your HTML / JSX.
A string to be rendered in case the emoji canβt be found
set
native
The emoji set: native, apple, facebook, google, twitter
skin
1
The emoji skin tone: 1, 2, 3, 4, 5, 6
π΅οΈββοΈ Headless search
You can search without the Picker. Just like the emoji component, data needs to be initialized first in order to use the search index.
import data from '@emoji-mart/data'
import { init, SearchIndex } from 'emoji-mart'
init({ data })
async function search(value) {
const emojis = await SearchIndex.search(value)
const results = emojis.map((emoji) => {
return emoji.skins[0].native
})
console.log(results)
}
search('christmas') // => ['π', 'π¨π½', 'π§βπ', 'π', 'π€Ά', 'π', 'βοΈ', 'βοΈ', 'π ', 'β']
π¬ Get emoji data from native
You can get emoji data from a native emoji. This is useful if you want to get the emoji ID from a native emoji. Just like the emoji component, data needs to be initialized first in order to retrieve the emoji data.
The most recent commit recorded on missive/emoji-mart was 2.3 years ago, based on the GitHub push timestamp. The repository has 905 forks β one of the better signals of community interest.
How does missive/emoji-mart compare to other UI / UX projects?
missive/emoji-mart is tracked by TopGit in the UI / UX category, with 9.4k GitHub stars and written in TypeScript. Browse the UI / UX topic page on TopGit to compare it against similar projects by stars and activity.
How many stars does missive/emoji-mart have?
missive/emoji-mart has 9.4k GitHub stars β refresh the page for the live number, or check github.com/missive/emoji-mart. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is missive/emoji-mart open source?
Yes β missive/emoji-mart ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/missive/emoji-mart.
What is missive/emoji-mart?
missive/emoji-mart (missive/emoji-mart) is a TypeScript project on GitHub. From the project's own README: πͺ One component to pick them all
Where do I read more about missive/emoji-mart?
This TopGit page is a snapshot β the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/missive/emoji-mart is the definitive source.
Read full README in the tab above.
Is emoji-mart worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of emoji-mart.