Detects clicks outside of a target element.
Listens for media query changes and returns a boolean.
Copies text to clipboard with feedback.
Triggers when an element enters or leaves the viewport.
Debounces a value or function for better performance.
Creates a debounced version of a callback function with cancellation, flush, and max-wait controls.
Syncs state with localStorage across browser sessions.
Toggles a boolean state value with memoized handlers.
Stores previous value of a state or prop across renders.
Tracks hover state of a target element with optional delay.
Prevents background scrolling with layout shift compensation and iOS Safari support.
Tracks scroll coordinates and direction in real time for the window or a specific scrollable element.
Tracks the browser's online and offline status and provides available network connection details such as connection type, downlink speed, and round-trip time.
Detects when the cursor leaves the viewport and provides exit-intent detection with configurable boundary filtering and trigger frequency.
Determines whether the current render is the initial mount, returning true on the first render and false on subsequent re-renders.
Provides state management with undo, redo, and time-travel capabilities through a chronological history of state snapshots.
Manages single, multi, and batch selection states with Set-based O(1) lookups and range selection.
Controls dataset pagination metrics, slice bounds, and UI navigation range with ellipsis handling.
A reactive Map instance synchronized with React state that triggers re-renders on mutation.
Manages array state with declarative helper methods for insertion, removal, reordering, and item transformations.
Manages boolean open/close state for modals, dialogs, drawers, and collapsibles with memoized handlers.
Quick search and commands navigation