Packages, peer dependencies and the motion provider.
Packages
Two packages do the work: @prequelui/react for the primitives and motion for the animation engine. There is no runtime registry and no network request at render time.
npm install @prequelui/react motionPeer dependencies
package.json
{
"peerDependencies": {
"react": ">=19",
"react-dom": ">=19",
"motion": ">=12"
}
}Provider
The provider is optional. It carries the global tempo and the reduced-motion policy, and it is the only place where a product-wide change of pace should live.
providers.tsx
import { PrequelProvider } from "@prequelui/react";
export function Providers({ children }: { children: React.ReactNode }) {
return (
<PrequelProvider tempo={1} reducedMotion="user">
{children}
</PrequelProvider>
);
}Imports
imports.ts
import { Button } from "@prequelui/react/primitives/buttons/button";
import { Dialog } from "@prequelui/react/primitives/radix-ui";
import { motion } from "motion/react";