payzli-ui
Version:
A custom react components library
18 lines (17 loc) • 626 B
TypeScript
export interface IToastr {
children?: React.ReactNode;
type: "primary" | "image" | "avatar" | "gray" | "error" | "warning" | "success" | "progress" | "none";
heading: string;
supportingText?: string;
actions: boolean;
iconColor?: "brand" | "error" | "warning" | "success" | "gray";
avatar?: string;
statusIcon?: "online" | "offline" | "verified" | "company" | JSX.Element;
iconSize?: "sm" | "md" | "lg" | "xl";
avatarText?: string;
imageSrc?: string;
iconSrc?: React.ReactNode;
handleFirstAction?: () => void;
handleSecondAction?: () => void;
onClose: () => void;
}