UNPKG

@charkour/react-reactions

Version:

😲 Create custom reaction pickers and counters or use your favorites!

17 lines (16 loc) • 698 B
import React from 'react'; import { ReactionCounterObject } from '../../helpers'; import { ReactionCounterEmojiProps } from './ReactionCounterEmoji'; export interface ReactionCounterProps extends Partial<Pick<ReactionCounterEmojiProps, 'iconSize' | 'bg'>> { reactions: ReactionCounterObject[]; user?: string; important?: string[]; showReactsOnly?: boolean; showTotalOnly?: boolean; showOthersAlways?: boolean; className?: string; onClick?: () => void; style?: React.CSSProperties; } export declare const ReactionCounter: React.ForwardRefExoticComponent<ReactionCounterProps & React.RefAttributes<HTMLDivElement>>; export default ReactionCounter;