Hooks
8 essential React hooks for common UI patterns. SSR-safe, TypeScript-first, zero dependencies.
npm install @allem-sdk/hooksuseDebounce
Debounce any value with a configurable delay
useLocalStorage
Persist state in localStorage with SSR safety
useMediaQuery
Track CSS media query matches reactively
useClickOutside
Detect clicks outside a referenced element
useToggle
Boolean state with toggle, on, and off helpers
useCopyToClipboard
Copy text to clipboard with success state
useIntersectionObserver
Observe element visibility in the viewport
useWindowSize
Track window dimensions reactively