@rxxuzi/gumi
Version:
Clean & minimal design system with delightful interactions
33 lines (32 loc) • 952 B
TypeScript
import { ToastOptions } from '../types';
export declare class Toast {
private static container;
private static toasts;
/**
* Show a toast notification
*/
static show(message: string, options?: ToastOptions): string;
/**
* Remove a specific toast
*/
static remove(id: string): void;
/**
* Remove all toasts
*/
static removeAll(): void;
/**
* Create container for toasts
*/
private static createContainer;
/**
* Get icon for toast type
*/
private static getIcon;
/**
* Helper methods for different toast types
*/
static success(message: string, options?: Omit<ToastOptions, 'type'>): string;
static error(message: string, options?: Omit<ToastOptions, 'type'>): string;
static warning(message: string, options?: Omit<ToastOptions, 'type'>): string;
static info(message: string, options?: Omit<ToastOptions, 'type'>): string;
}