UNPKG

@worktif/purei

Version:

Work TIF Material UI Theme Provider and Customization Suite for React applications with dark mode support and dynamic color schemes

32 lines (31 loc) 1.46 kB
import * as React from 'react'; import { ReactElement } from 'react'; import { TransitionProps } from '@mui/material/transitions'; import { Maybe } from '../../../types'; /** * Represents the props for the Notification component. * @typedef {Object} NotificationProps * @property {string} [title] - The title of the notification. * @property {string} [closeTitle] - The title for the close button. * @property {ReactElement} [dialogComponent] - The component to render within the notification dialog. * @property {any} [whyDidYouRender] - Additional data for tracking render optimizations. */ export type NotificationProps = { title?: string; closeTitle?: Maybe<string>; dialogComponent?: Maybe<ReactElement<any>>; whyDidYouRender?: any; blurBackground?: boolean; closeColor?: string; }; export declare const SlideFromBack: React.ForwardRefExoticComponent<TransitionProps & { children: React.ReactElement<any, any>; } & React.RefAttributes<unknown>>; /** * Represents a notification component that can display a dialog with customizable content and actions. * @param {string} title - The title of the notification dialog. * @param {string} closeTitle - The title of the close button. * @param {ReactElement} dialogComponent - The custom dialog component to render the notification dialog. * @returns {ReactElement} - The notification dialog component. */ export declare const Notification: React.FC<NotificationProps>;