react-next-toast
Version:
An easy to use library for toast notifications
21 lines (20 loc) • 527 B
TypeScript
export interface ToastDetail {
type: "success" | "error" | "info" | "warning";
message: string;
backgroundColor?: string;
textColor?: string;
position?: "right" | "top-right" | "bottom-right" | "left" | "top-left" | "bottom-left";
duration?: number;
}
export declare enum ToastType {
SUCCESS = "success",
ERROR = "error",
WARNING = "warning",
INFO = "info"
}
export declare enum DefaultMessage {
SUCCESS = "Success",
ERROR = "Error",
WARNING = "Warning",
INFO = "Info"
}