UNPKG

@totalsoft/rocket-ui

Version:

A set of reusable and composable React components built on top of Material UI core for developing fast and friendly web applications interfaces.

20 lines (19 loc) 888 B
import { ToastOptions as ToastOptionsBase, ToastContainerProps as ToastContainerPropsBase } from 'react-toastify'; export type TextFontSize = 'small' | 'medium' | 'large'; export interface ToastContainerProps extends Omit<ToastContainerPropsBase, 'transition' | 'textSize'> { /** * The appearance effect. * @default Slide */ transitionType?: 'Slide' | 'Bounce' | 'Zoom' | 'Flip'; /** * The size of the toast content text. * @default 'small' */ textSize?: TextFontSize; } export type ToastOptions = Omit<ToastOptionsBase, 'transition'> & { transitionType?: 'Slide' | 'Bounce' | 'Zoom' | 'Flip'; actions?: React.ReactNode; }; export declare const getTransitionType: (b: string) => ({ children, position, preventExitTransition, done, nodeRef, isIn, playToast }: import("react-toastify").ToastTransitionProps) => import("react").JSX.Element;