Tracks the size of the window.
An object containing readonly references to the size of the window.
const { height, width } = useWindowSize() watchEffect(() => { console.log('Window size:', { height: height.value, width: width.value }) }) Copy
const { height, width } = useWindowSize() watchEffect(() => { console.log('Window size:', { height: height.value, width: width.value }) })
Tracks the size of the window.