question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add new <Emoji/> component or prop that doesn't use <Button/>?

See original GitHub issue

I use the <Emoji/> component in multiple places where it doesn’t need to be clickable, seems odd to render it as a <Button/> in those cases.

Might be nice to either add a new component that renders it visually as before, or add a prop to switch between button and non button?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
EtienneLemcommented, Mar 28, 2019

Decided to go this way:

  • <button> with type=button (thanks for the tip) only when emoji is clickable (not by default)
  • <span> otherwise

Handled in #329

1reaction
nolanlawsoncommented, Mar 23, 2019

Perhaps it would be simpler to just use a prop after all. clickable={false} or something like that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding emojis to your React app - LogRocket Blog
There are multiple ways to add emojis into your React app. Here's a short guide to fit almost every single use case.
Read more >
Using Emojis in HTML, CSS, and JavaScript - KIRUPA
You have two ways of being able to do this, each with a varying degree of funness. One way is by using the...
Read more >
How to add Emoji's in your website, using HTML, CSS or ...
In CSS you need to use the ::before or ::after pseudo-element coupled with the content property where you paste the Emoji as the...
Read more >
Add emojis to input - javascript - Stack Overflow
Include the Emoji Picker in the component that holds the input's state and call it's setter (assuming you use functional components, call this....
Read more >
How to Create a Custom Component with Emoji in ... - YouTube
In this video you will learn: 1. How you can create custom component with input and output property 2. How you can use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found