reablocks
Version:
Component library for React
24 lines (22 loc) • 630 B
TypeScript
import { NotificationTheme } from './NotificationTheme';
import { NotificationOptions } from './NotificationsContext';
import { FC, ReactNode } from 'react';
export interface NotificationProps extends NotificationOptions {
/**
* Unique identifier for the notification.
*/
id: number;
/**
* Component to render as the notification.
*/
component?: ReactNode;
/**
* Callback to close the notification.
*/
onClose: (id: number) => void;
/**
* Theme for the Notification.
*/
theme?: NotificationTheme;
}
export declare const Notification: FC<NotificationProps>;