Theme

PlaygroundBeta

npm_versionnpm Paragon package page

useWindowSize

Sample Usage

Change the screen size to see the effect.

Any Paragon component or export may be added to the code example.

() => {
const { height, width } = useWindowSize();
return (
<p>
Window height: {height}px<br/>
Window width: {width}px
</p>
);
}

Usage Insights#

useWindowSize

Project NameParagon VersionInstance Count
frontend-app-account20.36.01
frontend-app-admin-portal20.26.31
frontend-app-discussions20.15.04
frontend-app-learner-dashboard20.32.020
frontend-app-learning20.28.416
prospectus20.32.33