UNPKG

@rviseui/notifications

Version:

Notification system based on Rvise components

15 lines 623 B
/// <reference types="react" /> import type { NotificationProps as NotificationComponentProps } from '@rviseui/core'; export interface NotificationProps extends Omit<NotificationComponentProps, 'onClose'> { id?: string; message: React.ReactNode; autoClose?: boolean | number; onClose?(props: NotificationProps): void; onOpen?(props: NotificationProps): void; } export interface NotificationsContextProps { notifications: NotificationProps[]; queue: NotificationProps[]; } export type NotificationsPositioning = ['top' | 'bottom', 'left' | 'right' | 'center']; //# sourceMappingURL=types.d.ts.map