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) 456 B
import { Dispatch, SetStateAction } from 'react'; interface IProps { showEmojiPicker: boolean; setShowEmojiPicker: (value: SetStateAction<boolean>) => void; setCurrentEmoji: Dispatch<SetStateAction<string>>; currentEmoji: string; theme?: "dark" | "light"; } declare const Button: ({ currentEmoji, setCurrentEmoji, setShowEmojiPicker, showEmojiPicker, theme, }: IProps) => import("react/jsx-runtime").JSX.Element; export default Button;