UNPKG

@supunlakmal/hooks

Version:

A collection of reusable React hooks

9 lines (8 loc) 331 B
/** * Hook to detect if the user prefers reduced motion based on system settings. * * Uses the `prefers-reduced-motion` media query. * * @returns {boolean} True if the user prefers reduced motion, false otherwise, or null if not supported/determined yet. */ export declare function usePrefersReducedMotion(): boolean | null;