EmojiPicker
Search and pick emojis with categories, skin tone selector, and virtualized grid
Source
Package
License
Usage
EmojiPicker displays a searchable emoji grid with category navigation, skin tone selector and preview.
Emoji data is passed with the data prop, see getting started for setup instructions:
Size
Use the size prop to change the size of all inner elements:
Without search
Set withSearch={false} to hide the search input:
Without preview
Set withPreview={false} and withSkinToneSelector={false} to hide the footer area:
Custom columns
Use the columns prop to change the number of emojis per row, the picker width adjusts to it:
Emoji size
Use the emojiSize prop to change the size of emoji buttons:
Skin tone
The skin tone selector in the preview area opens a popover with all skin tone options.
Use skinTone and onSkinToneChange props to control the value:
Current skin tone: 0
Scroll area
Use the scrollAreaProps prop to pass props to the internal ScrollArea, for example to change its height:
Category labels and localization
Override category labels with the categoryLabels prop and other strings with the labels prop:
Search icon
Use the searchInputProps prop to customize the search input, for example to add an icon to the left section:
Empty search content
Use the emptySearchContent prop to change the content displayed when nothing is found:
Toggle sections
Use these boolean props to toggle individual sections:
Controlled search
Use searchValue and onSearchChange props to control the search input value:
Unsupported emoji detection
Set withUnsupportedDetection to hide emojis that the current browser or operating system cannot render.
Detection draws each emoji on a canvas and is not reliable on every platform, so it is disabled by default:
Keyboard navigation
The category navigation and emoji grid are each a single tab stop.
ArrowDown, ArrowUp and Enter also work in search; Enter selects the first result.