Emoji Picker
NewCategories, search by name, recently used and arrow-key navigation, with a built-in set so there's nothing to download.
Recent
Smileys
Gestures
Animals and nature
Food and drink
Activities
Objects
Symbols
Reactions: 🚀 👀
Installation
$ pnpm dlx shadcn@latest add @synccn/emoji-pickerFirst time in this project? Connect synccn with one command.
Usage
import { EmojiPicker } from "@/components/ui/emoji-picker";<EmojiPicker onSelect={(emoji) => react(emoji)} />API reference
Generated from the component's TypeScript types, so it always matches the code.
EmojiPicker
Emoji picker with categories, search by name, recently used and full keyboard support. Ships its own small, curated set (about 180 emoji) so there's nothing to download.
- onSelectrequired
(emoji: string, name: string) => voidCalled with the chosen emoji and its name.
- recent
string[]Default
[]Emoji shown in "Recent" at first, newest first.
- columns
numberDefault
8Columns in the grid.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
- lucide-react for Search
Keyboard
- ←or→or↑or↓Move through emoji
- HomeorEndFirst or last emoji
- EnterorSpacePick the emoji
- ↓From the search box, jump into the grid
Accessibility
- Each emoji has its name as its label, and the grid has a single tab stop.
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA roles: toolbar
- ARIA attributes: aria-label
- Keys handled: ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Home, End
- Shows a visible focus ring for keyboard users
- Labels are tied to their controls