UNPKG

reactioning

Version:

Just a simple library to show beautiful reactions in your app.

17 lines (16 loc) 556 B
import { default as React } from 'react'; export type Reaction = { count: number; selected?: boolean; }; export type Reactions = { thumbUp?: Reaction; hearth?: Reaction; thumbDown?: Reaction; rocket?: Reaction; }; export interface ReactionsContainerProps { values: Reactions; onClick: (e: React.MouseEvent<HTMLDivElement>, reaction: "thumbUp" | "hearth" | "thumbDown" | "rocket") => void; } export declare const ReactionsContainer: ({ values, onClick, }: ReactionsContainerProps) => import("react/jsx-runtime").JSX.Element;