@chayns-components/emoji-input
Version:
Input field that supports HTML elements and emojis
24 lines (23 loc) • 830 B
TypeScript
import { FC } from 'react';
export type EmojiPickerPopupProps = {
/**
* Access token of the logged-in user. Is needed to load and save the history of the emojis.
*/
accessToken?: string;
/**
* Function that is executed when the visibility of the popup changes.
* @param {boolean} isVisible - Whether the popup is visible or not
*/
onPopupVisibilityChange?: (isVisible: boolean) => void;
/**
* Person id of the logged-in user. Is needed to load and save the history of the emojis.
*/
personId?: string;
/**
* Function executed when an emoji is selected in the popup
* @param {string} emoji - Emoji that was selected
*/
onSelect: (emoji: string) => void;
};
declare const EmojiPickerPopup: FC<EmojiPickerPopupProps>;
export default EmojiPickerPopup;