notistack-v2-maintained
Version:
Highly customizable notification snackbars (toasts) that can be stacked on top of each other
22 lines (21 loc) • 1.1 kB
TypeScript
import type { SnackbarClassKey } from "@mui/material";
import { Snack } from "./SnackbarProvider";
import { ClassNameMap, SnackbarProviderProps as ProviderProps, RequiredBy, SharedProps } from "./types";
declare const DIRECTION: {
readonly right: "left";
readonly left: "right";
readonly bottom: "up";
readonly top: "down";
};
export type DirectionType = (typeof DIRECTION)[keyof typeof DIRECTION];
export declare const getTransitionDirection: (anchorOrigin: Snack["anchorOrigin"]) => DirectionType;
type RemovedProps = "variant" | "anchorOrigin" | "autoHideDuration" | "preventDuplicate";
export interface SnackbarItemProps extends RequiredBy<Omit<SharedProps, RemovedProps>, "onEntered" | "onExited" | "onClose"> {
snack: Snack;
dense: ProviderProps["dense"];
iconVariant: ProviderProps["iconVariant"];
hideIconVariant: ProviderProps["hideIconVariant"];
classes: Partial<ClassNameMap<SnackbarClassKey>>;
}
export default function SnackbarItem({ classes: propClasses, ...props }: SnackbarItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
export {};