UNPKG

@thibault.sh/hooks

Version:

A comprehensive collection of React hooks for browser storage, UI interactions, and more

15 lines (13 loc) 334 B
interface WindowSize { width: number; height: number; } /** * Hook that tracks window dimensions * @returns Object containing current window width and height * @example * const { width, height } = useWindowSize(); * console.log(width, height); */ declare function useWindowSize(): WindowSize; export { useWindowSize };