React Hooks & Utilities
Complete collection of 80 production-ready React hooks, declarative control-flow components, and pure utilities by Space UI.
Browser Hooks
Copies text to the system clipboard with automatic timeout reset and state feedback.
ViewReal-time network connection monitor providing online/offline state and bandwidth.
ViewEvaluates CSS media queries with useSyncExternalStore for zero layout shift.
ViewSynchronizes state with window.localStorage across tabs.
ViewSynchronizes reactive state with window.sessionStorage.
ViewReactive cookie reader and setter.
ViewObserver callback triggered when a specific cookie value changes.
ViewDetects operating system platform.
ViewmacOS platform detector for keyboard shortcut mappings.
ViewElement fullscreen mode controller.
ViewBattery percentage and charging status.
ViewScreen orientation angles and type.
ViewSystem color scheme detector.
ViewDynamic script loader with load status.
ViewNative Web Share API caller.
ViewDocument title badge notification counter.
ViewDocument head title modifier.
ViewDOM Hooks
Outside click callback trigger.
ViewDeclarative event listener binding.
ViewObserves mouse hover state on target DOM elements using either automatic ref tuples or external refs.
ViewAdvanced IntersectionObserver hook.
ViewDetect active pressed keyboard keys.
ViewLocks page scrolling without layout shift.
ViewTracks real-time cursor coordinates.
ViewReal-time 8-directional scroll detection (cardinal & diagonal) with hardware gesture recognition (touchpad 2D swipe, mouse wheel, touch, keyboard).
ViewReal-time window or element scroll offset coordinates (X and Y).
ViewProgrammatic smooth scrolling helper supporting window or custom scrollable containers, element IDs, selectors, refs, and pixel coordinates.
ViewMeasures real-time element pixel dimensions with ResizeObserver.
ViewViewport dimensions tracker.
ViewLifecycle Hooks
Unsaved changes tab exit guard.
ViewDebounces fast-changing state values with configurable delay.
ViewStable guaranteed callback reference.
ViewFirst render cycle indicator.
ViewFirst user session identifier.
ViewLong-press hold gesture detector.
ViewUser inactivity timeout monitor.
ViewDeclarative timer with start, pause, and dynamic delay controls.
ViewCheck component mount state.
ViewSSR-safe layout effect using useEffect on server and useLayoutEffect on client.
ViewComprehensive exit-intent, viewport boundary exit, split-screen window blur, and tab visibility switch detection.
ViewBattery/CPU low-power mode optimizer.
ViewGuaranteed exactly-once execution effect (StrictMode safe).
ViewBoolean state toggle switch.
ViewEffect executed only on dependencies update, skipping mount.
ViewReact 18 transition priority switcher.
ViewAnimation Hooks
Container height measurement via ResizeObserver and requestAnimationFrame for smooth CSS transitions.
ViewSeamless synchronizer for both controlled and uncontrolled component state patterns.
ViewData attributes state mapper for CSS styling.
ViewTracks viewport intersection with IntersectionObserver.
ViewFramer Motion value reactive state subscriber.
ViewForm Hooks
Enforces maximum input length with live character counter and remaining quota.
ViewAdvanced file upload and dropzone manager with preview generation, size validation, and file type presets.
ViewUnified form input and textarea value binder supporting tuple destructuring, object spreading, and reset/clear actions.
ViewUniversal pagination and load-more trigger supporting async data fetchers and client-side array batching.
ViewReactive Map collection state manager.
ViewRobust async mutation runner with loading, success, error tracking, and lifecycle callbacks.
ViewSmart pagination calculation with dynamic range arrays, boundary and sibling pages, and navigation controls.
ViewFast client-side markdown compiler.
ViewReal-time article reading time calculator with CJK multilingual support, Markdown/HTML stripping, and code/image weighting.
ViewSSR-safe HTML sanitizer that strips XSS threats while preserving rich formatting.
ViewControl-Flow Components
Conditional class wrapper component.
ViewDeclarative JSX list rendering component with automatic empty state fallback.
ViewDeclarative boolean conditional rendering with lazy function execution.
ViewProgressive loading responsive image component.
ViewViewport intersection trigger component wrapper.
ViewDelayed lazy component mounting.
ViewTruthy conditional renderer that unwraps non-null data directly to children render function.
ViewPattern-matching conditional container supporting Case and Default branches.
ViewPure Utilities
Memory memoization cache map.
ViewImperative cookie helper with get, set, and delete.
ViewSafe cross-browser event listener binder with automatic unbind return.
ViewConverts raw byte counts into localized human-readable file sizes and parses strings back into bytes.
ViewText truncate and content formatting helpers.
ViewLocalized date and relative time formatting.
ViewString transforms and slug generation.
ViewNegative numeric verification.
ViewScoped development and production logger.
ViewGenerates mapped numeric arrays for iterations and maps numbers across ranges with linear interpolation.
ViewPromise-based delay timer.
View