Skip to content

$windowWidth

ts
const $windowWidth: Signal<number>;

A signal containing the window width.

Example

ts
import { $windowWidth } from "@monstermann/signals-web";

$windowWidth(); // 1920