π OnigiriJS Emoji Picker
A lightweight, customizable emoji picker with 400+ emojis, search functionality, and persistent recent emojis. Perfect for adding expressive communication to your apps!
π Interactive Demo
Try the Emoji Picker
Click the emoji button to open the picker and add emojis to your text!
Input Field Example
Parse Emoji Codes
Type emoji codes like :smile:, :heart:, :onigiri:, :fire:
β¨ Features
11 Categories
Smileys, Gestures, People, Animals, Food, Activities, Travel, Objects, Symbols, Flags
Recent Emojis
Automatically tracks recently used emojis with persistent localStorage.
Search
Quickly find the perfect emoji with real-time search functionality.
Theme Support
Seamlessly integrates with light and dark theme modes.
Mobile Friendly
Fully responsive design that works great on all devices.
Shortcodes
Parse emoji codes like :smile:, :heart:, :onigiri: in your text.
Random Emoji
Get random emojis from any category for fun interactions.
Lightweight
No dependencies except OnigiriJS core. Fast and efficient.
π Usage Examples
Basic Setup
// Initialize emoji module
Onigiri.emojis.init({
showRecents: true,
showSearch: true,
position: 'bottom-right'
});
// Attach emoji picker to a button
document.getElementById('emoji-btn').addEventListener('click', function() {
Onigiri.emojis.show(document.getElementById('my-textarea'));
});
Using OnigiriJS Selectors
// Automatically attach picker to all elements with class
Onigiri('.emoji-trigger').emojiPicker({
position: 'bottom-left',
theme: 'dark'
});
Parse Emoji Codes
// Convert shortcodes to emojis
const text = 'Hello :smile: World! :heart:';
const parsed = Onigiri.emojis.parse(text);
// Result: "Hello π World! β€οΈ"
// Parse emojis in DOM elements
Onigiri('.comment-text').parseEmojis();
Random Emojis
// Get random emoji from category
const foodEmoji = Onigiri.emojis.random('food');
const smiley = Onigiri.emojis.random('smileys');
// Available categories:
// smileys, gestures, people, animals, food,
// activities, travel, objects, symbols, flags
π― Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
showRecents |
Boolean | true | Show recently used emojis category |
showSearch |
Boolean | true | Show search input in picker |
position |
String | 'bottom-right' | Picker position: 'top-left', 'top-right', 'bottom-left', 'bottom-right' |
theme |
String | 'light' | Theme: 'light' or 'dark' |
maxRecents |
Number | 30 | Maximum number of recent emojis to store |
π§ Available Emoji Shortcodes
Common Codes:
:smile:β π:heart:β β€οΈ:thumbsup:β π:thumbsdown:β π:fire:β π₯:star:β β:check:β β:cross:β β:warning:β β οΈ:info:β βΉοΈ:onigiri:β π:sushi:β π£:pizza:β π:burger:β π:coffee:β β:beer:β πΊ:rocket:β π:tada:β π:clap:β π:pray:β π
π¨ Styling
The emoji picker comes with beautiful default styles that automatically adapt to your OnigiriJS theme. To customize the appearance, simply override the CSS variables:
.emoji-picker {
--picker-width: 320px;
--picker-max-height: 400px;
--emoji-size: 32px;
}
/* Customize for dark theme */
.emoji-picker.theme-dark {
background: var(--bg-secondary);
border-color: var(--border-color);
}
Ready to add emojis to your app? π
Include the emoji module and start making your application more expressive!
View Documentation ββ Development Roadmap
Track the progress of OnigiriJS modules. Tasks are marked complete by the development team.
OnigiriJS Module Roadmap
Implementation progress of planned modules