Setting the file. One moment.
Subchapter 18.173
references/usePageLeave.mdMarkdown738 BView on GitHub
import { usePageLeave } from '@vueuse/core'
const isLeft = usePageLeave()<template>
<UsePageLeave v-slot="{ isLeft }">
Has Left Page: {{ isLeft }}
</UsePageLeave>
</template>export interface UsePageLeaveOptions extends ConfigurableWindow {}
export type UsePageLeaveReturn = ShallowRef<boolean>
/**
* Reactive state to show whether mouse leaves the page.
*
* @see https://vueuse.org/usePageLeave
* @param options
*
* @__NO_SIDE_EFFECTS__
*/
export declare function usePageLeave(
options?: UsePageLeaveOptions,
): UsePageLeaveReturn