Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

get-client-window-size

funtal67MIT1.0.0TypeScript support: included

A safe way of returning the interior width and height of the window in pixels

ts, lib, ssr, funtal, ssr safe, function, playerony, typescript, Typescript, window.innerWidth, window.innerHeight, getClientWindowSize, getClientWindowWidth, getClientWindowHeight, server-side-rendering, get client window size, get-client-window-size, get client window width, get-client-window-width, get client window height, get-client-window-height, document.body.clientWidth, document.body.clientHeight, ssr safe window.innerWidth, ssr safe window.innerHeight, document.documentElement.clientWidth, document.documentElement.clientHeight

readme

Welcome to get-client-window-size 👋

A safe way of returning the interior size of the window in pixels

alt Version alt License: MIT alt Twitter: twitter.com/WojtasinskiPawe

Documentation

Usage

Install

npm i get-client-window-size

or

yarn add get-client-window-size

Simple function example

simple-function-example

Authors

👤 Paweł Wojtasiński

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if this project helped you!

PixelShiba