UNPKG

notify-zh

Version:

Es una pequeña libreria de notificaciones para el FrontEnd. Esta libreria tiene un peso de 1.4 Kb.

46 lines (43 loc) 1.1 kB
type NotificationPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center-bottom' | 'center-top' | 'center'; interface ClassNameOptions { base?: string; success?: string; error?: string; warning?: string; info?: string; animateIn?: string; animateOut?: string; } interface PropsOptions { message: string; time?: number; position?: NotificationPosition; icon?: { el?: string; }; title?: string; } interface PropsConfig { defaultTime?: number; position?: NotificationPosition; backgrounds?: { warning?: string; error?: string; success?: string; info?: string; }; maxWidth?: string; width?: string; disableDefaultStyles?: boolean; classNames?: ClassNameOptions; } declare class Notify { #private; config(data: Partial<PropsConfig>): void; success(data: PropsOptions): void; warning(data: PropsOptions): void; error(data: PropsOptions): void; info(data: PropsOptions): void; } declare const notify: Notify; export { notify as default };