ValyroUI Русская версия

Emoji Picker

Emoji picker: search, categories, skin tones, recents. Pro · Forms and input › Color, size and emoji

Emoji picker: search by name and keyword, category toolbar with sticky section headers over a virtualized grid, skin tones and recently used emoji. Arrow keys move through the grid.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add emoji-picker
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { EmojiPicker } from 'valyro-ui-pro';

Props

PropTypeDefault
onEmojiSelect(selection: EmojiSelection) => voidCalled when an emoji is chosen: clicked, activated by keyboard, or the first result on Enter in search. Receives the emoji with the current skin tone applied and its name.
skinTone0 | 1 | 2 | 3 | 4 | 5Controlled skinTone; use with onSkinToneChange.
defaultSkinTone0 | 1 | 2 | 3 | 4 | 50Initial skinTone when uncontrolled.
onSkinToneChange(tone: SkinTone) => voidCalled with the new skinTone when it changes.
recentsKeystring | null'ui-emoji-picker-recents'localStorage key for recently used emoji; null keeps them in memory only.
maxRecentsnumber16Recently used emoji to remember (default 16).
columnsnumber8Emoji per row (default 8).
heightnumber280Height of the scrolling grid in px (default 280).
autoFocusbooleanfalseFocus the search field on mount (for pickers opened from a button).
previewbooleantrueFooter with the hovered (or keyboard-active) emoji and its name (default true). Turn it off when the names are not translated into the interface language (see labels.emojiName).
labelsPartial<EmojiPickerLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Size Picker · Next: File Uploader · All Forms and input