Install PrequelUI Animate and give your shadcn/ui components their motion.
Install the packages
npm install @prequelui/react motion@prequelui/react uses the primitive library your components already depend on (radix-ui, @base-ui/react or react-aria-components).
Animate your components
Run the CLI in your project. It finds your shadcn/ui components through components.json, swaps their primitive imports for ours and removes the CSS animation classes that Motion replaces.
npx @prequelui/cli@latest animate allAnimate one component at a time by naming it, and preview the changes with --dry-run:
npx @prequelui/cli@latest animate accordion --dry-runChange the pace (optional)
Wrap your app in the provider and set a tempo. Values above 1 slow everything down and soften the springs; values below 1 speed everything up.
import { PrequelProvider } from "@prequelui/react";
export function Providers({ children }: { children: React.ReactNode }) {
return (
<PrequelProvider tempo={1} reducedMotion="user">
{children}
</PrequelProvider>
);
}How checks animate (optional)
Checkboxes and toasts draw their check after the surface has landed. If you prefer a plain fade, pass checkAnimation="fade". The delay stays the same, so the choreography does not change.
<Checkbox checkAnimation="fade" />