UNPKG

@k-link/notifications

Version:

Notification system based on Klink UI components

15 lines 622 B
/// <reference types="react" /> import type { NotificationProps as NotificationComponentProps } from '@k-link/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