UNPKG

light-toast

Version:

A light-weight react toast component built for mobile web app

11 lines (10 loc) 331 B
export declare type TypeWithIcon = 'success' | 'fail' | 'loading'; export declare type Type = 'info' | TypeWithIcon; export declare type NoArgsReturnVoidFunction = () => void; export interface Message { id: number; type: Type; content: string; duration?: number; onClose?: NoArgsReturnVoidFunction; }