EmojiContext
The EmojiContext
is established by the Channel
component and exposes the useEmojiContext
hook. This context holds
the UI components and stateful data necessary to render emoji selector functionality.
#
Basic UsagePull values from context with our custom hook:
const { Emoji, emojiConfig } = useEmojiContext();
#
Values#
EmojiCustom UI component to override default NimbleEmoji
from 'emoji-mart'.
Type |
---|
component |
#
emojiConfigThe configuration data for emojis, including the rendered JSON data set.
Type |
---|
EmojiConfig |
#
EmojiIndexCustom class constructor to override default NimbleEmojiIndex
from 'emoji-mart'.
Type |
---|
constructor |
#
EmojiPickerCustom UI component to override default NimblePicker
from 'emoji-mart'.
Type |
---|
component |