Size
0.38 kb
useDocumentHasFocus
Track the focus state of the document.
Installation
Usage
Track the document visibility:
API Reference
UseDocumentHasFocusOptions
The options for the useDocumentHasFocus hook.
Prop | Type | Default |
---|---|---|
onChange? | ((hasFocus: boolean) => void) | - |