UNPKG

@ducor/react

Version:

admin template ui interface

11 lines (10 loc) 333 B
/** * `useHover` is a custom hook that detects whether the pointer has moved over or away from an element. * * @see Docs https://ui.ducor.net/hooks/use-hover */ declare const useHover: <T extends HTMLElement = HTMLDivElement>() => { ref: import("react").RefObject<T | null>; hovered: boolean; }; export default useHover;