Installation
After installation import package styles at the root of your application:
Emoji data
@mantine/emoji does not include emoji data, pass it with the data prop.
The package exports adapters for two popular emoji data sources:
Using @emoji-mart/data
Install the data package:
Then use the adapter to convert the data:
Using emojibase-data
Install the data package:
Then use the adapter to convert the data:
Custom data
You can also build the data yourself with the EmojiPickerData interface:
Canonical category IDs
Both adapters return the same category IDs in this order, use them as keys of the categoryLabels prop:
people– Smileys & Peoplenature– Animals & Naturefoods– Food & Drinkactivity– Activityplaces– Travel & Placesobjects– Objectssymbols– Symbolsflags– Flags
To display recently used emojis, add a category with id: 'frequent' to your data.
It is displayed with a clock icon in the category navigation.