The short version
Keep your components. Move the layer underneath.
PrequelUI Animate is a motion layer for the primitives you already use. No rewrite: your markup, styles and API stay put.
Why primitives
shadcn/ui components change often and come in many styles and bases. PrequelUI does not copy them: each animated primitive has exactly the API of its library, with motion inside. Whatever your configuration, swapping the import is enough.
- import { Dialog } from "@/components/ui/dialog";
+ import { Dialog } from "@/components/prequelui/dialog";npx shadcn@latest add https://prequeluianimate.terravidhal.me/r/react/accordion.jsonMotion that feels right
Springs and short tweens on a strong ease-out. Exits are quicker than entrances, and every animation can be interrupted without a jump.
Change the pace
One provider controls the whole app. A tempo above 1 slows everything down; below 1 it speeds everything up. Durations, delays and stagger scale; state values never do.
import { PrequelMotionProvider } from "@/components/prequelui/motion";
export function Providers({ children }: { children: React.ReactNode }) {
return (
<PrequelMotionProvider tempo={1}>
{children}
</PrequelMotionProvider>
);
}Libraries
The React implementation works with the libraries below. The 31 Base UI primitives also ship for Vue, Svelte, Solid and JavaScript. Every animated family ships in all five frameworks, and each component card and page says where it runs.
Looking for a complete example? The AI Chat recipe in Components assembles a streaming assistant from these primitives.