---
# System prepended metadata

title: Viewport detection
tags: [brew-js]

---

---
tags: brew-js
---

# Viewport detection

```typescript
import brew from "brew-js/core";
import from "brew-js/extension/viewport";

brew<Brew.WithViewport>((app) => {})
```


### `orientationchange` event

### `resize` event
