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
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add emoji-pickerOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { EmojiPicker } from "@/components/ui/emoji-picker"; <EmojiPicker onSelect={handleSelect} />Source code
emoji-picker.tsx + 2 helpersZero 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 />| Prop | Type | Description |
|---|---|---|
| onSelect | (emoji: string) => void | Callback when an emoji is selected. |
| initialCategory | string | Initial category tab (default: smileys). |