UNPKG

z-react-dynamic-form

Version:

A dynamic form builder for React applications with various input types and validation

14 lines (13 loc) 454 B
import React, { ReactNode } from "react"; export type ToastType = "success" | "error" | "warning" | "info"; interface ToastContextType { success: (message: string) => void; error: (message: string) => void; warning: (message: string) => void; info: (message: string) => void; } export declare const ToastProvider: React.FC<{ children: ReactNode; }>; export declare function useToast(): ToastContextType; export default ToastProvider;