DEV Community

Cover image for Emoji Button: 400 ⭐️ stars on GitHub!
Joe Attardi
Joe Attardi

Posted on

Emoji Button: 400 ⭐️ stars on GitHub!

My pet project, Emoji Button, has just passed 400 stars on GitHub!

Emoji Button is a vanilla JavaScript emoji picker component that can be dropped into any JavaScript application!

This is the most stars any project of mine has ever gotten, so it was an exciting milestone for me.

Thank you to everyone who has checked it out!

The library has come pretty far since I first created it, mostly thanks to suggestions from its users. These include:

  • Twemoji support
  • Keyboard navigation
  • Light and dark themes

Thanks again, everyone!

Top comments (13)

yuanhao profile image
YuanHao Chiang • Edited

Nice! 400 is amazing. Just added your 417th star 😉 I really like how sleek it is and vanilla coded libraries are a real treat nowadays.

One small detail, on Firefox, contenteditable has some sort of weird height issue (MacOS and Windows):


This can be easily fixed with a zero-width non-breaking space:

    content: "\feff";

I ran into this with my pet Markdown Table project. I was looking to add an Emoji component, I will try out yours!

joeattardi profile image
Joe Attardi

Thanks for the heads up! I will fix the demo site so that it displays correctly in Firefox.

crimsonmed profile image
Médéric Burlet

Looks awesome congrats man!

Do be careful I think there are a few issues on firefox where the cursor is bigger than the textbox.

I would also say add an option to have the emoji panel open on textbox focus.

Spacer Bigger

joeattardi profile image
Joe Attardi

Oops, yes, I need to fix that Firefox issue. However, that is an issue with the demo site only - not the library itself.

Emoji Button is a very generic library - it doesn't dictate how you show it. The text boxes are just an example. You can call showPicker() when a button is clicked, as in the demo, or you can also call it when the text box is focused, as you suggested.

Thanks for taking a look!

ben profile image
Ben Halpern


joeattardi profile image
Joe Attardi

Thank you!

hinasoftwareengineer profile image

Many many congratulations 😍

khvnkay profile image

Thanks, I will try :D

olton profile image
Serhii Pimenov • Edited

why dropdown list dropped on right side? on mobile this not good.

joeattardi profile image
Joe Attardi

Thanks for the feedback!

The right side is only the default. You can specify any position you wish via the position option! See the docs for details:

wobsoriano profile image

Starred! Will use on my future projects.

adnanbabakan profile image
Adnan Babakan (he/him)

Congrats! And you got a star from me as well!

puchkii profile image
Kevin Blank