@edancerys/ts-react-components-lib
Version:
21 lines (20 loc) • 740 B
TypeScript
import React, { ReactNode, MouseEvent } from 'react';
import { StringProps } from './String';
export interface NotificationProps {
title?: StringProps;
body?: StringProps;
type?: 'success' | 'warning' | 'danger' | 'info';
position?: 'left-top' | 'right-top' | 'left-bottom' | 'right-bottom' | 'center-top' | 'center-bottom';
toastColor?: string;
backgroundColor?: string;
padding?: string;
width?: string;
maxWidth?: string;
minWidth?: string;
animation?: string;
borderRadius?: string;
children?: ReactNode;
onClick?: (event?: MouseEvent) => void;
onCloseClick?: (event?: MouseEvent) => void;
}
export declare const Notification: React.FC<NotificationProps>;