reablocks
Version:
Component library for React
26 lines (24 loc) • 846 B
TypeScript
import { NotificationTheme } from './NotificationTheme';
import { NotificationVariants } from './NotificationsContext';
import { default as React, FC, ReactNode, JSXElementConstructor } from 'react';
export interface NotificationComponentProps {
message: string;
variant: NotificationVariants;
onClose?: () => void;
}
export interface NotificationsProps {
limit?: number;
timeout?: number;
showClose?: boolean;
preventFlooding?: boolean;
children?: ReactNode;
className?: string;
components?: {
[variant in NotificationVariants]?: JSXElementConstructor<NotificationComponentProps>;
};
icons?: {
[variant in NotificationVariants]?: string | React.JSX.Element | React.JSX.Element[];
};
theme?: NotificationTheme;
}
export declare const Notifications: FC<NotificationsProps>;