Introduction
Getting Started
Common API
Theming
Helper Functions
Advanced API
Components
Box
Flex
Stack
Grid
Text
Paragraph
Heading
Button
Link
List
ListItem
Label
Input
Checkbox
Radio
Select
Toggle
Slider
Textarea
Svg
Activatables
Hooks
useCookie
useInternetListener
useInView
useIsoLayoutEffect
useMeasure
useMediaQuery
useOutsideClickListener
usePrevious
useWindowSize
useRafMeasure
useRafState
useRafWindowSize
Recipes
Accordions
OffscreenContainer
StickyISI
Tabs
Resources
useWindowSize
View source code
Edit Icon
Edit this page
Watch the window's size
const
{
width
,
height
}
=
useWindowSize
(
)
← Hooks
Recipes →
Permalink Icon