Configure the shadcn CLI to install React MotionKit components into your project.
React MotionKit components are distributed as source through the shadcn CLI. They work in any React 19 project that uses Tailwind CSS v4.
If your project does not have a components.json yet, initialize it:
npx shadcn@latest initMotionKit works with both Radix and Base UI projects. Components bring their own Radix primitives, so
installing them adds radix-ui to a Base UI project too.
Add the @motionkit namespace to components.json. Pro customers also add @motionkit-pro:
{
"registries": {
"@motionkit": "https://reactmotionkit.com/r/{name}.json",
"@motionkit-pro": {
"url": "https://reactmotionkit.com/r/pro/{name}.json",
"headers": {
"Authorization": "Bearer ${MOTIONKIT_TOKEN}"
}
}
}
}npx shadcn@latest add @motionkit/marqueeThe CLI copies the component into components/ui, installs its npm dependencies (usually
Motion) and any shared helpers it needs.
Pro components are served from an authenticated registry. Create a token in your dashboard
and store it in .env.local (never commit it):
MOTIONKIT_TOKEN=rmk_...The CLI expands ${MOTIONKIT_TOKEN} from your environment when it requests a component:
npx shadcn@latest add @motionkit-pro/magnetic-buttonFree components can also be installed from their URL, without editing components.json:
npx shadcn@latest add https://reactmotionkit.com/r/marquee.json