A simple, reusable, and event-based emoji picker built for Svelte. Perfect for chat apps, editors, and anything fun!
on:emoji
eventnpm
, pnpm
, bun
, and jsr
(Deno)Install via your favorite package manager:
npm install @your-org/emoji-picker
pnpm add @your-org/emoji-picker
bun add @your-org/emoji-picker
import EmojiPicker from "jsr:@your-org/emoji-picker";
Import and use the emoji picker in any Svelte component:
<script lang="ts">
import EmojiPicker from '@your-org/emoji-picker';
let selectedElement = { content: '' };
function updateTextSettings() {
// Your custom logic
console.log('Updated:', selectedElement.content);
}
</script>
<EmojiPicker
on:emoji={(e: CustomEvent) => {
selectedElement.content = e.detail;
updateTextSettings();
}}
/>
git clone https://github.com/your-org/emoji-picker.git
cd emoji-picker
npm install
npm run dev
Make sure you have SvelteKit if you're testing it inside an app.
Got an idea? Found a bug? Open an issue or PR — contributions are welcome!
MIT © Your Name
If you like this project, give it a ⭐ on GitHub and share it with others!