0.18.0 • Published 2 years ago

@reach/window-size v0.18.0

Weekly downloads
10,468
License
MIT
Repository
github
Last release
2 years ago

@reach/window-size

Stable release MIT license

Docs | Source

Measure the current window dimensions.

import WindowSize, { useWindowSize } from "@reach/window-size";

function Example() {
	const { width, height } = useWindowSize();
	return (
		<div>
			<p>
				Looks like a pretty{" "}
				{width <= 400 ? "small" : width >= 1000 ? "large" : "normal"} screen!
			</p>
		</div>
	);
}
0.18.0-pre.0

2 years ago

0.18.0-pre.5

2 years ago

0.18.0-pre.4

2 years ago

0.18.0-pre.3

2 years ago

0.18.0-pre.2

2 years ago

0.18.0-pre.1

2 years ago

0.18.0

2 years ago

0.17.0

3 years ago

0.16.0

3 years ago

0.15.3

3 years ago

0.15.2

3 years ago

0.15.0

4 years ago

0.14.0

4 years ago

0.13.1

4 years ago

0.13.2

4 years ago

0.13.0

4 years ago

0.12.1

4 years ago

0.12.0

4 years ago

0.11.2

4 years ago

0.11.1

4 years ago

0.11.0

4 years ago

0.10.5

5 years ago

0.10.4

5 years ago

0.10.3

5 years ago

0.10.2

5 years ago

0.10.1

5 years ago

0.10.0

5 years ago

0.9.0

5 years ago

0.8.6

5 years ago

0.8.5

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.0

5 years ago

0.7.4

5 years ago

0.7.3

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.2

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.3

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.4.0-beta.0

5 years ago

0.3.0

5 years ago

0.3.0-alpha.0

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago