Skip to content

ASCII Emoticons

ASCII emoticons like :), <3, :D, and ;) are matched by default. They require whitespace or string boundaries on both sides to avoid false positives inside words.

<EmojiText>hello :)</EmojiText> {/* :) → emoji */}
<EmojiText>hello:)</EmojiText> {/* no match — no boundary */}

Disable ASCII matching on the provider or per-instance:

import emojiMartData from '@emoji-mart/data';
import { fromEmojiMart } from 'react-emoji-text/adapters/emoji-mart';
const data = fromEmojiMart(emojiMartData);
<EmojiProvider data={data} ascii={false}>
<EmojiText>hello :)</EmojiText> {/* renders as plain text */}
</EmojiProvider>

Toggle the ASCII checkbox to see how emoticons are handled:

hello 👋 world ❤️