@chayns-components/emoji-input
Version:
Input field that supports HTML elements and emojis
19 lines (18 loc) • 587 B
TypeScript
import { FC } from 'react';
export type EmojiPickerProps = {
/**
* Access token of the logged-in user. Is needed to load and save the history of the emojis.
*/
accessToken?: string;
/**
* Function executed when an emoji is selected in the popup
* @param {string} emoji - Emoji that was selected
*/
onSelect: (emoji: string) => void;
/**
* Person id of the logged-in user. Is needed to load and save the history of the emojis.
*/
personId?: string;
};
declare const EmojiPicker: FC<EmojiPickerProps>;
export default EmojiPicker;