-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom emojis category #2
Comments
Hi @EtienneLem - how would one go about adding that custom prop? Is this a hack or sth already available? Cheers, |
I'm also curious about how to do this. |
I’m thinking about making a pull request and would like to discuss how we should implement this beforehand. Here’s what I have thought of: import { Picker } from 'emoji-mart'
const customEmojis = [
{
id: 'octocat',
name: 'Octocat',
colons: ':octocat:',
keywords: ['github'],
emoticons: [],
imageUrl: 'https://assets-cdn.github.com/images/icons/emoji/octocat.png?v7'
}
]
<Picker custom={customEmojis} /> The The above would render something like this: The {
id: 'octocat',
name: 'Octocat',
colons: ':octocat',
emoticons: [],
custom: true,
imageUrl: 'https://assets-cdn.github.com/images/icons/emoji/octocat.png?v7'
} The Additionally, I would add the custom category to the @EtienneLem It would be great if you could take a look at this and let me know what you think. |
I love it! That’s how simple I imagined it. Perhaps the For the search, it’s simply a Also, both That emoji looks like: {
name: 'Smiling Face with Open Mouth and Tightly-Closed Eyes',
short_names: ['laughing', 'satisfied'],
emoticons: [':>', ':->'],
} and that’s all EmojiMart needs and will return a sanitized emoji object on click. However, it may get complicated in that area ( I feel like saying more would confuse you more than help you 😅 |
EmojiMart will not upload custom emojis, but it could support a
custom
prop.The text was updated successfully, but these errors were encountered: