emoji-picker-react
emoji-picker-react copied to clipboard
No selectedEmoji prop
i wanted to change the background style of the selected emoji, but i didn't find a selectedEmoji or activeEmoji prop
i tried this solution but it changes the style for all pickers present in the page (because i have the pickers inside a map() in jsx for each message)
<EmojiPicker onEmojiClick={handleEmojiClick} open={showEmojiPicker} reactionsDefaultOpen reactions={["2764-fe0f", "1f44d", "1f973", "1f914", "1f44e", "1f621"]} emojiStyle={EmojiStyle.FACEBOOK} /> {selectedEmoji && ( <style> {
.epr-btn[data-unified="${selectedEmoji}"] {
background-color: #e0e0e0 !important;
border-radius: 50px;
}
} </style> )}