UNPKG

flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

15 lines (14 loc) 531 B
/// <reference types="react" /> import type { FlowbiteToastTheme } from "./Toast"; export type Duration = 75 | 100 | 150 | 200 | 300 | 500 | 700 | 1000; type ToastContext = { theme: FlowbiteToastTheme; duration?: Duration; isClosed?: boolean; isRemoved?: boolean; setIsClosed: (isClosed: boolean) => void; setIsRemoved: (isRemoved: boolean) => void; }; export declare const ToastContext: import("react").Context<ToastContext | undefined>; export declare function useToastContext(): ToastContext; export {};