Add the Nook "Motion" component to this project, exactly as Nook ships it. Shared motion preference, animation timing and a visible playback control. Steps 1. Check for `nook.json` in the project root. If it is missing, run `npx nook-ui@latest init` first (React or Next.js with Tailwind CSS v4). It adds the Nook tokens, the theme and `cn()`. 2. Run `npx nook-ui@latest add motion`. It writes `components/ui/motion.tsx` together with everything the component needs. Do not write the component from memory. 3. If you cannot run commands, fetch http://localhost:3000/r/motion.json, write every entry of `files` to the path it names, install the packages in `dependencies`, and repeat for each name in `registryDependencies`. 4. Use it where I ask. Start from this example: ```tsx "use client"; import * as React from "react"; import { MotionControl, useReducedMotion } from "@/components/ui/motion"; /** Three effects that run forever. The button pauses all of them at once. */ export default function MotionDefault() { const [paused, setPaused] = React.useState(false); const reduced = useReducedMotion(); const state = paused || reduced ? "paused" : "running"; return (
Effects are {state}.
If your system asks for reduced motion, everything starts paused and the button is disabled.