Interface PressValue

A value returned from the usePress hook.

interface PressValue {
    isPressed: boolean;
    pressProps: DOMAttributes<Element>;
}

Properties

isPressed: boolean

true if an element is currently pressed.

pressProps: DOMAttributes<Element>

Props of an element for which press interactions are tracked.

An object which identity never changes between renders.