@anton.bobrov/react-vevet-hooks
Version:
A collection of custom React hooks designed to seamlessly integrate with the `Vevet` library
20 lines • 760 B
TypeScript
import { IUseEventListenerSettings, THookEventElement } from '@anton.bobrov/react-hooks';
export interface IUseNonMobilePointerHoverProps extends IUseEventListenerSettings {
}
/**
* Custom React hook for detecting pointer hover state on non-mobile devices.
*
* @example
* const MyComponent = () => {
* const ref = useRef<HTMLDivElement>(null);
* const isHovered = useNonMobilePointerHover(ref);
*
* return (
* <div ref={ref} style={{ backgroundColor: isHovered ? 'lightblue' : 'white' }}>
* Hover over me!
* </div>
* );
* };
*/
export declare function useNonMobilePointerHover(ref: THookEventElement, props?: IUseNonMobilePointerHoverProps): boolean;
//# sourceMappingURL=useNonMobilePointerHover.d.ts.map