Skip to content

Functions

Explore hooks by category from the left sidebar and jump into implementation details quickly.

Core
Sort by

Browser

useBluetooth-Request Bluetooth devices
useBreakpoints-Resolve responsive breakpoints from window width
useBroadcastChannel-BroadcastChannel wrapper hook
useBrowserLocation-Track browser URL location fields
useClipboardItems-Read ClipboardItem entries
useColorMode-Manage color mode (light/dark/auto)
useCopyToClipboard-Copy text to the clipboard
useCssSupports-Check CSS feature support
useCssVar-Read and update CSS variables
useDark-Manage dark mode state and DOM classes
useEyeDropper-Sample colors with the EyeDropper API
useFavicon-Update the page favicon dynamically
useFileDialog-Open and read file chooser
useFileSystemAccess-Read and save files
useFullscreen-Fullscreen control hook
useGamepad-Track connected gamepads
useHash-Read and update URL hash state
useImage-Reactive image loader
useLockBodyScroll-Lock body scrolling while active
useMediaControls-Control media playback
useMediaQuery-React to media query matches
useMemory-Read JS heap memory
useObjectUrl-Blob to object URL with cleanup
usePageVisibility-Track page visibility changes
usePerformanceObserver-Observe performance entries
usePermission-Track browser permission state
usePreferredColorScheme-Track preferred color scheme
usePreferredContrast-Track preferred contrast level
usePreferredDark-Track preferred dark mode
usePreferredLanguages-Track preferred browser languages
usePreferredReducedMotion-Track reduced-motion preference
usePreferredReducedTransparency-Track reduced transparency preference
useScreenOrientation-Track screen orientation state
useScreenSafeArea-Read safe-area insets
useScript-Load external scripts with status
useShare-Share content with Web Share API
useSSRWidth-Read viewport width with SSR fallback
useStyleTag-Inject dynamic CSS style tag
useTextDirection-Track document text direction
useTitle-Set and restore document title
useUrlSearchParams-Manage URL search query params
useVibrate-Trigger device vibration patterns
useWakeLock-Manage screen wake lock state
useWebNotification-Browser notification helper
useWebWorker-Web Worker state hook
useWebWorkerFn-Run function in Web Worker
useWindowSize-Track window width and height

Released under the MIT License.