Componentpickers1.97 KB gzipZero dependencies

EmojiPicker

Panel with category tabs (Smileys, Gestures, Hearts, Objects), search filter, and emoji grid with selection callback.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add emoji-picker

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { EmojiPicker } from "@/components/ui/emoji-picker"; <EmojiPicker onSelect={handleSelect} />

Source code

emoji-picker.tsx + 2 helpers

Zero third-party dependencies (3 local files shown in tabs below).

tsxemoji-picker.tsx194 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils";import { useLocalStorage } from "./lib/hooks"; export interface EmojiEntry {  char: string;  name: string;  keywords: string;} const EMOJI_CATEGORIES = {  smileys: [    { char: "😀", name: "Grinning face", keywords: "smile happy grin" },    { char: "😁", name: "Beaming face", keywords: "smile teeth happy" },    { char: "😂", name: "Tears of joy", keywords: "laugh cry lol funny" },    { char: "🤣", name: "Rolling laughing", keywords: "rofl laugh funny" },

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { EmojiPicker } from "@/components/ui/emoji-picker"; <EmojiPicker />
PropTypeDescription
onSelect(emoji: string) => voidCallback when an emoji is selected.
initialCategorystringInitial category tab (default: smileys).