UNPKG

react-emoji-toggle-button

Version:

A flexible and reusable React package to use an emoji picker and connect it with a text input using Ref. Toggle emoji button for React apps.

11 lines (10 loc) 433 B
/** * Detects whether the emoji in `text` is rendered as a color emoji by this * browser. * * Note: this is not complete for detecting support for any emoji. Notably, it * does not detect whether emojis that consist of two glyphs with a * zero-width-joiner are rendered as a single emoji or as two, because this is * not needed to detect country flag support. */ export declare function supportsEmoji(text: string): boolean;