@appbuckets/react-ui-smart-components
Version:
UI Extended Components that work with @appbuckets/react-client and @appbuckets/react-ui
27 lines (26 loc) • 911 B
TypeScript
import * as React from 'react';
export declare type NotificationContainerHorizontalPosition =
| 'POS_RIGHT'
| 'POS_CENTER'
| 'POS_LEFT';
export declare type NotificationContainerVerticalPosition =
| 'POS_TOP'
| 'POS_CENTER'
| 'POS_BOTTOM';
export interface NotificationContainerProps {
/** Add className to tray container to add custom styling */
className?: string;
/** Namespace is mandatory */
namespace: string;
/** Set horizontal and vertical position of tray */
position?: {
horizontal: NotificationContainerHorizontalPosition;
vertical: NotificationContainerVerticalPosition;
};
/** The distance in pixels between each toast in the tray */
spacing?: number;
/** Custom style object for the tray, eases custom positioning */
style?: React.CSSProperties;
/** The default time in ms for toasts in the tray. Can be overridden individually */
timeout?: number;
}