Skip to main content

useReducedMotion Hook

A React hook that detects the user's reduced motion preference using useSyncExternalStore for React 18+ concurrent mode safety.

Installation

$ npx shadcn@latest add @orecus/use-reduced-motion

Usage