PXD

useWindowSize

Tracks window dimensions reactively, updating on resize and orientation change.

Exports

function useWindowSize(): {
  width: Ref<number>
  height: Ref<number>
}

Source

Source