{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "use-reduced-motion",
  "title": "useReducedMotion",
  "description": "Tracks the prefers-reduced-motion setting without a motion engine.",
  "files": [
    {
      "path": "registry/spotcheck/hooks/use-reduced-motion.ts",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nconst QUERY = \"(prefers-reduced-motion: reduce)\"\n\nfunction subscribe(onChange: () => void) {\n  const media = window.matchMedia(QUERY)\n  media.addEventListener(\"change\", onChange)\n  return () => media.removeEventListener(\"change\", onChange)\n}\n\nexport function useReducedMotion() {\n  return React.useSyncExternalStore(\n    subscribe,\n    () => window.matchMedia(QUERY).matches,\n    () => false,\n  )\n}\n",
      "type": "registry:hook"
    }
  ],
  "type": "registry:hook"
}