UNPKG

@adaptui/react

Version:

Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit

8 lines (7 loc) 269 B
import * as React from "react"; import { Action, DefaultToast } from "./ToastTypes"; export declare const useToastState: <T extends DefaultToast>() => StateReturnType<T>; export interface StateReturnType<T> { toasts: T[]; dispatch: React.Dispatch<Action<T>>; }