Skip to content
synccn

Emoji Picker

New

Categories, 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

🚀rocket

Reactions: 🚀 👀

Installation

$ pnpm dlx shadcn@latest add @synccn/emoji-picker

First 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) => void

    Called with the chosen emoji and its name.

  • recent
    string[]

    Default []

    Emoji shown in "Recent" at first, newest first.

  • columns
    number

    Default 8

    Columns in the grid.

  • className
    string

    Extra 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

npm packages

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