Docs / Installation
Into your project
Three steps: have Tailwind ready, install the one animation library, paste a component.
1. A project with Tailwind CSS 4
Any React setup works. With Next.js:
npx create-next-app@latest my-app --typescript --tailwind
cd my-appIf you already have a project, follow Tailwind’s guide for your framework. The components only use standard Tailwind utilities.
2. Install Motion (if the component animates)
Components that animate use motion. The component page lists it under “Or go manual” when it’s needed.
npm i motion3. Copy the component
Open any component, switch to the Code tab and copy the source into your project — for examplecomponents/bowls/magnetic-dock.tsx. The demo.tsx tab shows how to use it.
import { MagneticDock } from "@/components/bowls/magnetic-dock";
export default function Page() {
return <MagneticDock items={apps} />;
}Using a framework without “use client”?
Interactive components start with "use client" for the Next.js App Router. In other setups (Vite, Remix) that line is harmless and can stay or go.
Dark mode
Components style dark mode with Tailwind’s dark: classes, so they follow whatever your project uses. See Theming.