Skip to main content

Examples

Real-world recipes showing how to combine multiple hooks from @ts-hooks-kit/core.


  • Dark Mode Toggle

    Persist theme preference with useDarkMode and useLocalStorage.

    useDarkModeuseLocalStorage
  • Infinite Scroll

    Load more items as the user scrolls with useIntersectionObserver and useAsync.

    useIntersectionObserveruseAsync
  • Search with Debounce

    Filter results with debounced input using useDebounceValue and useAsync.

    useDebounceValueuseAsync
  • Responsive Layout

    Adapt layout based on viewport with useMediaQuery and useWindowSize.

    useMediaQueryuseWindowSize
  • Clipboard Manager

    Copy text snippets to clipboard with useCopyToClipboard and useBoolean.

    useCopyToClipboarduseBoolean