package.notyf.options.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of notyf Show documentation
Show all versions of notyf Show documentation
A dead simple, responsive, a11y, dependency-free, vanilla JavaScript toast library.
The newest version!
export declare type DeepPartial = {
[P in keyof T]?: DeepPartial;
};
export declare type NotyfHorizontalPosition = 'left' | 'center' | 'right';
export declare type NotyfVerticalPosition = 'top' | 'center' | 'bottom';
export interface INotyfPosition {
x: NotyfHorizontalPosition;
y: NotyfVerticalPosition;
}
export declare enum NotyfEvent {
Dismiss = "dismiss",
Click = "click"
}
export interface INotyfIcon {
className: string;
tagName: keyof ElementTagNameMap;
text: string;
color: string;
}
export interface INotyfNotificationOptions {
type: string;
className: string;
duration: number;
icon: string | INotyfIcon | false;
/**
* @deprecated Use `background` instead. Removal target: v4.0.0.
*/
backgroundColor: string;
background: string;
message: string;
ripple: boolean;
position: INotyfPosition;
dismissible: boolean;
}
export interface INotyfOptions {
types: Array>;
duration: number;
ripple: boolean;
position: INotyfPosition;
dismissible: boolean;
}
export declare const DEFAULT_OPTIONS: INotyfOptions;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy