Skip to content

Instantly share code, notes, and snippets.

View shaheemMPM's full-sized avatar
🏠
Working from home

Mohammed Shaheem P shaheemMPM

🏠
Working from home
View GitHub Profile
@shaheemMPM
shaheemMPM / EmojiGrid.tsx
Created July 10, 2025 10:55
A lightweight, system-compatible Emoji Picker component in React + TypeScript, using Unicode ranges of well-supported emojis only. Ideal for embedding in apps where a small set of safe emojis is preferred over full emoji libraries.
import React from "react";
// ✅ Safe emoji Unicode blocks
const emojiRanges = [
[0x1f600, 0x1f64f], // Emoticons (faces, gestures, emotions)
[0x1f680, 0x1f6c5], // Transport & map symbols
[0x2600, 0x26ff], // Miscellaneous symbols
[0x2700, 0x27bf], // Dingbats
[0x1f300, 0x1f320], // Natural elements