@withjoy/joykit
Version:
UI Component Library for Joy web
8 lines (7 loc) • 341 B
TypeScript
import React from 'react';
import { ToastQueueItem, ToastOptions } from './types';
export interface ToasterContextType {
dismiss: (toastId?: string) => void;
dispatch: (content: ToastQueueItem['toastContent'], options?: Partial<ToastOptions>) => string;
}
export declare const ToastContext: React.Context<ToasterContextType>;