# useDocumentVisibility

Reactively track

**Package:** `@vueuse/core`
**Category:** Elements

## Usage

```ts
<script setup lang="ts">
import { useDocumentVisibility } from '@vueuse/core'

const visibility = useDocumentVisibility()
</script>
```

## Reference

[VueUse Docs](https://vueuse.org/core/useDocumentVisibility/)
