loading...
Cover image for Emoji Button: 400 ⭐️ stars on GitHub!

Emoji Button: 400 ⭐️ stars on GitHub!

joeattardi profile image Joe Attardi ・1 min read

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!

Discussion

markdown guide
 

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):

firefoxBug

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

*[contenteditable]:empty:before
{
    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!

 

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

 

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

 

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!

 
 
 
 

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

 

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: github.com/joeattardi/emoji-button...

 

Starred! Will use on my future projects.

 

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