UNPKG

@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.

24 lines 897 B
import type { FloatingContext, FloatingRootContext } from "../types.js"; export type UseHoverFloatingInteractionProps = { /** * Whether the Hook is enabled, including all internal Effects and event * handlers. * @default true */ enabled?: boolean | undefined; /** * Waits for the specified time when the event listener runs before changing * the `open` state. * @default 0 */ closeDelay?: number | (() => number) | undefined; /** * Tree node id override for floating elements that participate in the tree * without a `FloatingContext`, such as inline nested navigation menus. */ nodeId?: string | undefined; }; /** * Provides hover interactions that should be attached to the floating element. */ export declare function useHoverFloatingInteraction(context: FloatingRootContext | FloatingContext, parameters?: UseHoverFloatingInteractionProps): void;