UNPKG

rooks

Version:

Collection of awesome react hooks

11 lines (10 loc) 390 B
/** * usePrefersReducedMotion * * A React hook that returns true if the user has enabled the "prefers-reduced-motion" setting in their system. * * @returns {boolean} True if the user prefers reduced motion, false otherwise. * @see https://rooks.vercel.app/docs/hooks/usePrefersReducedMotion */ declare function usePrefersReducedMotion(): boolean; export { usePrefersReducedMotion };