Hooks
A collection of useful React hooks for your applications.
Welcome to the Vayu UI Hooks collection. Here you can find a variety of hooks to help you build better React applications.
Available Hooks
useCopyToClipboard
Copy text to the clipboard with ease.
useCountdown
Manage countdown timers.
useDebounce
Debounce values to reduce frequent updates.
useHover
Detect when an element is being hovered.
useIdle
Detect user idle state.
useIntervalWhen
Set intervals that can be paused or resumed.
useIsMount
Check if the component is currently mounted.
useKeyPress
Detect key press events.
useList
Manage lists with useful utility functions.
useLocalStorage
Persist state to local storage.
useLockBodyScroll
Lock body scroll when a component is mounted.
useMap
Manage map state with utility functions.
useMeasure
Measure element dimensions.
useMediaQuery
Subscribe to media query matching.
useMouseTrack
Track mouse position.
useNetworkStatus
Monitor network connection status.
useOnClickOutside
Detect clicks outside of an element.
usePageLeave
Detect when the mouse leaves the page.
useQueue
Manage a queue of items.
useRenderCount
Count component renders for debugging.
useSet
Manage a Set with utility functions.
useThrottle
Throttle values to limit update frequency.
useTimeout
Execute a callback after a timeout.
useVisibilityChange
Detect document visibility changes.
useWindowSize
Track window dimensions.