window-size

Reliable way to get the height and width of terminal/console, since it's not calculated or updated the same way on all platforms, environments and node.js versions.

@chakra-ui/react-env

Component and hook for handling window and document object in iframe or ssr environment