UNPKG

zeed-dynamic-table

Version:

A flexible and dynamic table component for React and Next.js applications without Tailwind dependencies

28 lines (27 loc) 779 B
/** * Utility hook for checking if code is running on client-side * Works with all React versions */ export declare function useIsClient(): boolean; /** * Hook to detect dark mode preference * Compatible with latest React versions */ export declare function useDarkMode(): boolean; /** * Debounce hook for search inputs * Works with the latest React versions (18+) */ export declare function useDebounce<T>(value: T, delay?: number): T; /** * Safe window size hook that works with SSR and the latest React */ export declare function useWindowSize(): { width: number | undefined; height: number | undefined; }; /** * A helper function to determine if dark mode is enabled * Works outside of React components */ export declare function isDarkMode(): boolean;