@base-ui/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
12 lines • 550 B
TypeScript
import * as React from 'react';
import type { ToastObject } from "../useToastManager.js";
export interface ToastRootContext {
toast: ToastObject<any>;
setTitleId: React.Dispatch<React.SetStateAction<string | undefined>>;
setDescriptionId: React.Dispatch<React.SetStateAction<string | undefined>>;
visibleIndex: number;
expanded: boolean;
recalculateHeight: (flushSync?: boolean) => void;
}
export declare const ToastRootContext: React.Context<ToastRootContext | undefined>;
export declare function useToastRootContext(): ToastRootContext;