UNPKG

@storm-stack/hooks

Version:

A collection of React hooks used by Storm Software in various client libraries and applications.

7 lines (6 loc) 310 B
/** * A hook that returns tuple containing a ref and a boolean indicating if the element (referenced by the ref) is being hovered. * * @returns A tuple containing a ref and a boolean indicating if the element is being hovered */ export declare const useHover: () => [(node: HTMLElement) => void, boolean];