Interface HoverValue

A value returned from the useHover hook.

interface HoverValue {
    hoverProps: DOMAttributes<Element>;
    isHovered: boolean;
}

Properties

hoverProps: DOMAttributes<Element>

Props of an element for which hover interactions are tracked.

An object which identity never changes between renders.

isHovered: boolean

true if an element is currently hovered.