stream-chat-react
Version:
React components to create chat conversations or livestream style chat
26 lines • 1.13 kB
TypeScript
import React from 'react';
import { type Notification as NotificationType } from 'stream-chat';
type NotificationEntryDirection = 'bottom' | 'left' | 'right' | 'top';
type NotificationTransitionState = 'enter' | 'exit';
export type NotificationIconProps = {
notification: NotificationType;
};
export type NotificationProps = {
/** Notification from client.notifications state */
notification: NotificationType;
/** Optional class name */
className?: string;
/** Direction from which the notification enters. */
entryDirection?: NotificationEntryDirection;
/** Optional custom icon component. */
Icon?: React.ComponentType<NotificationIconProps>;
/** Optional dismiss handler */
onDismiss?: () => void;
/** Show close button (for persistent notifications) */
showClose?: boolean;
/** Optional transition state applied by NotificationList. */
transitionState?: NotificationTransitionState;
};
export declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
export {};
//# sourceMappingURL=Notification.d.ts.map