UNPKG

@ludiks/react

Version:

Complete React library for Ludiks gamification platform - includes SDK and ready-to-use components

37 lines (36 loc) 1.52 kB
import { BaseComponentProps, NotificationData } from '../../types'; interface GamificationToasterProps extends BaseComponentProps { notification: NotificationData; position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center'; duration?: number; showRewards?: boolean; showPoints?: boolean; animations?: boolean; onClose?: () => void; visible?: boolean; } export declare function GamificationToaster({ notification, position, duration, showRewards, showPoints, animations, onClose, visible, className, colors, }: GamificationToasterProps): import("react/jsx-runtime").JSX.Element | null; export declare function showGamificationToast(notification: NotificationData, options?: Partial<GamificationToasterProps>): { container: HTMLDivElement; cleanup: () => void; toasterProps: { notification: NotificationData; position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | undefined; duration?: number | undefined; showRewards?: boolean | undefined; showPoints?: boolean | undefined; animations?: boolean | undefined; onClose: () => void; visible?: boolean | undefined; className?: string | undefined; colors?: Partial<{ primary?: string; secondary?: string; success?: string; warning?: string; background?: string; text?: string; } | undefined>; }; }; export {};