Interface HeadlessTrackHandleValue

A value returned from the useTrackHandle hook.

interface HeadlessTrackHandleValue {
    cancelDrag: (() => void);
    handleProps: DOMAttributes<Element>;
    isDragged: boolean;
}

Properties

cancelDrag: (() => void)

Cancels the current drag interaction.

handleProps: DOMAttributes<Element>

Props of a handle element.

An object which identity never changes between renders.

isDragged: boolean

true if a handle is currently being dragged.