FoundryKit

Hooks

React hooks exported by @foundrykit/hooks.

Hooks

@foundrykit/hooks is the hook-level companion to FoundryKit UI packages. It exports reusable logic for local storage, media queries, click-outside behaviour, debouncing, form field context, and advanced search.

Install

pnpm add @foundrykit/hooks

Current Hooks

  • useDebouncedValue
  • useLocalStorage
  • useMediaQuery
  • useClickOutside
  • useIsMobile
  • useFormField and related contexts
  • useAdvancedSearch and related context exports

On this page