@zenithui/toast
Version:
A modern, lightweight toast notification system for React applications. ZenithUI Toast provides a simple and customizable way to display notifications, alerts, and messages to users with smooth animations and flexible styling options.
14 lines (13 loc) • 544 B
TypeScript
import type { ToastContextProps } from "../lib/types";
/**
* The Context of the toast which is created using createContext from React.
* This enables the use of toast in the application.
* @type {React.Context<ToastContextProps | undefined>}
*/
export declare const ToastContext: React.Context<ToastContextProps | undefined>;
/**
* The custom hook to use the toast in the application.
* This hook is used to add the toast in the toast container.
* @returns {ToastContextProps}
*/
export declare const useToast: () => ToastContextProps;