---
title: "useWindowSize"
description: "This composable provides a simple utility to track the width and height of the browser window with reactivity"
package: "maz-ui"
url: "https://maz-ui.com/composables/use-window-size"
---

# useWindowSize

> This composable provides a simple utility to track the width and height of the browser window with reactivity

- Package: `maz-ui`
- Import: `import { useWindowSize } from 'maz-ui/composables/useWindowSize'`
- Nuxt: auto-imported by `@maz-ui/nuxt`, no import needed in a Nuxt app
- Web: https://maz-ui.com/composables/use-window-size

## Basic usage

```ts
const { height, width } = useWindowSize()
```

**Warning:**

More documentation to come
