Skip to content

useWindowFocus

Category
Export Size
247 B
Last Changed
5 days ago

Reactive window focus state

Demo

Usage

tsx
import { 
useWindowFocus
} from '@reause/core'
const
focused
=
useWindowFocus
() // boolean

Type Declarations

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

Source

Source · Demo · VueUse

Contributors

hairyf

Changelog

v0.1.0 on
86d6f - fix(core): resolve useWindowFocus audit findings (#695)

Released under the MIT License. v0.1.8