Skip to main content

Module use_viewport_width

Module use_viewport_width 

Source
Expand description

The page’s width, kept current as the window resizes.

Constants§

UNMEASURED_WIDTH
The width assumed where there is no window to measure (the server render).

Functions§

use_viewport_width
The document’s client width in CSS pixels (the viewport without its scrollbar), updated on every window resize for as long as the calling component is mounted.