Getting started
Get started with @mantine/emoji package
Docs
Package
License
Installation
After installation import package styles at the root of your application:
Emoji data
@mantine/emoji does not include emoji data, you need to pass it with the data prop.
The package exports adapters for the two most 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 provide data directly using the EmojiPickerData interface:
Canonical category IDs
Both adapters return the same category IDs in the following order. Use these IDs
as keys of the categoryLabels prop:
people– Smileys & Peoplenature– Animals & Naturefoods– Food & Drinkactivity– Activityplaces– Travel & Placesobjects– Objectssymbols– Symbolsflags– Flags
frequent category is not returned by the adapters. 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.