{
  "isLeft": false
}

usePageLeave

Reactive state to show whether the mouse leaves the page.

Usage

import { usePageLeave } from '@vueuse/core'

const isLeft = usePageLeave()

Type Declarations

/**
 * Reactive state to show whether mouse leaves the page.
 *
 * @see   {@link /usePageLeave}
 * @param options
 */
export declare function usePageLeave(options?: ConfigurableWindow): Ref<boolean>

Source

SourceDemoDocs