@yesstudio/nuxt-composables
    Preparing search index...

    Function useWindowSize

    • Tracks the size of the window.

      Returns UseWindowSize

      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 })
      })