Skip to content

usePageLeave

Category
Export Size
267 B
Last Changed
5 days ago

Reactive state to show whether the mouse leaves the page

Demo

Usage

tsx
import { 
usePageLeave
} from '@reause/core'
const
isLeft
=
usePageLeave
() // boolean

Type Declarations

ts
export function usePageLeave(options?: ConfigurableWindow): boolean

Source

Source · Demo · VueUse

Contributors

hairyf

Changelog

v0.1.0 on
3a129 - fix(core): resolve usePageLeave audit findings (#613)

Released under the MIT License. v0.1.8