UNPKG

@anton.bobrov/react-vevet-hooks

Version:

A collection of custom React hooks designed to seamlessly integrate with the `Vevet` library

20 lines 740 B
import { IUseEventListenerSettings, THookEventElement } from '@anton.bobrov/react-hooks'; export interface IUseNonMobileHoverProps extends Omit<IUseEventListenerSettings, 'getIsDisabled'> { } /** * Custom React hook for detecting hover state on non-mobile devices. * * @example * const MyComponent = () => { * const ref = useRef<HTMLDivElement>(null); * const isHovered = useNonMobileHover(ref); * * return ( * <div ref={ref} style={{ backgroundColor: isHovered ? 'lightblue' : 'white' }}> * Hover over me! * </div> * ); * }; */ export declare function useNonMobileHover(ref: THookEventElement, props?: IUseNonMobileHoverProps): boolean; //# sourceMappingURL=useNonMobileHover.d.ts.map