FoundryKit

API

Public exports from @foundrykit/hooks.

API

import {
  FormFieldContext,
  FormItemContext,
  SearchContext,
  useAdvancedSearch,
  useClickOutside,
  useDebouncedValue,
  useFormField,
  useIsMobile,
  useLocalStorage,
  useMediaQuery,
} from '@foundrykit/hooks';
import type { EmptyStateBehaviour, FormFieldContextValue, FormItemContextValue, SearchResult, SearchSection } from '@foundrykit/hooks';

The package also re-exports everything from src/lib/utils.ts, so small hook helpers are available from the same entrypoint.

On this page