UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

12 lines (11 loc) 505 B
import type { ThemingProps } from "../../types"; import type { ToastDuration, ToastTheme } from "./Toast"; export interface ToastContextValue extends ThemingProps<ToastTheme> { duration?: ToastDuration; isClosed?: boolean; isRemoved?: boolean; setIsClosed: (isClosed: boolean) => void; setIsRemoved: (isRemoved: boolean) => void; } export declare const ToastContext: import("react").Context<ToastContextValue | undefined>; export declare function useToastContext(): ToastContextValue;