Introduction

Animated drop-in primitives built for real product interfaces.

PrequelUI Animate animates the primitives your components are built on, not the components themselves. Your shadcn/ui components stay yours: same structure, same styles, same API. Only the import of their primitive changes.

before-after.tsx
- import { Accordion as AccordionPrimitive } from "radix-ui";
+ import { Accordion as AccordionPrimitive } from "@prequelui/react/primitives/radix-ui";

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 shadcn/ui configuration, swapping the import is enough, and one command does it for every installed component:

npx @prequelui/cli@latest animate all

Motion that feels right

Every primitive follows the same rules: springs and short tweens on a strong ease-out, exits quicker than entrances, transforms and opacity rather than layout, interruptible animations, and nothing on keyboard navigation. Reduced motion is respected everywhere without any setup.

The motion is restrained on purpose. A menu opened fifty times a day has to feel quick, not impressive. Each primitive documents what enters, what leaves, how long it takes and what remains under reduced motion.

Press

spring 550 / 30 — 0.97

Surface

spring 300 / 30

Entrance

220–350 ms ease-out

Exit

130–200 ms, always shorter

Libraries

The React implementation works with Base UI, Radix UI and React Aria. The Vue mirror is being prepared around Reka UI; its pages are visible in the sidebar and marked as they land.

Base UIRadix UIReact Ariashadcn/uiMotion

Built by Vidhal. The source is available on GitHub.

Last updated: 11/17/2026