@base-ui-components/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.
17 lines • 766 B
TypeScript
import type { FloatingContext, FloatingRootContext } from "../types.js";
import type { UseHoverProps } from "./useHover.js";
import { HTMLProps } from "../../utils/types.js";
export interface UseHoverReferenceInteractionProps extends UseHoverProps {
/**
* Whether the hook controls the active trigger. When false, the props are
* returned under the `trigger` key so they can be applied to inactive
* triggers via `getTriggerProps`.
* @default true
*/
isActiveTrigger?: boolean;
}
/**
* Provides hover interactions that should be attached to reference or trigger
* elements.
*/
export declare function useHoverReferenceInteraction(context: FloatingRootContext | FloatingContext, props?: UseHoverReferenceInteractionProps): HTMLProps | undefined;