Size
0.32 kb
useDocumentVisibility
Track the visibility of the document.
Installation
Usage
Track the document visibility:
API Reference
UseDocumentVisibilityOptions
The options for the useDocumentVisibility hook.
| Prop | Type | Default |
|---|---|---|
onChange? | ((isVisible: boolean) => void) | - |