--- category: Elements --- # useWindowScroll Reactive window scroll ## Usage ```vue ``` ## Type Declarations ```ts export interface UseWindowScrollOptions extends ConfigurableWindow, UseScrollOptions {} /** * Reactive window scroll. * * @see https://vueuse.org/useWindowScroll * @param options */ export declare function useWindowScroll(options?: UseWindowScrollOptions): { x: WritableComputedRef y: WritableComputedRef isScrolling: ShallowRef arrivedState: { left: boolean right: boolean top: boolean bottom: boolean } directions: { left: boolean right: boolean top: boolean bottom: boolean } measure(): void } export type UseWindowScrollReturn = ReturnType ```