Documentation Index
Fetch the complete documentation index at: https://docs.velt.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
setCustomReactions
- Use this to set custom reactions emojis.
React / Next.js
Other Frameworks
const customReactions = {
"URL_EMOJI_ID": {
"url": "https://em-content.zobj.net/source/apple/391/fire_1f525.png"
},
"URL_EMOJI_ID_2": {
"iconUrl": "EMOJI_URL"
},
"TEXT_EMOJI_ID": {
"emoji": "🤣" // emoji as a text
}
};
<VeltInlineReactionsSection customReactions={customReactions} />
API Method:const reactionElement = client.getReactionElement();
reactionElement.setCustomReactions(customReactions);
const reactionElement = Velt.getReactionElement();
const customReactions = {
"URL_EMOJI_ID": {
"url": "https://em-content.zobj.net/source/apple/391/fire_1f525.png"
},
"URL_EMOJI_ID_2": {
"iconUrl": "EMOJI_URL"
},
"TEXT_EMOJI_ID": {
"emoji": "🤣" // emoji as a text
}
};
reactionElement.setCustomReactions(customReactions);