Documentation Index Fetch the complete documentation index at: https://mintlify.com/Max-Samson/magicui/llms.txt
Use this file to discover all available pages before exploring further.
Magic UI has the exact same installation process as shadcn/ui .
Magic UI components are built on top of shadcn/ui and follow the same installation pattern. You’ll use the shadcn CLI to set up your project and add components.
Run the init command to create a new Next.js project or to setup an existing one:
Set up your project structure
Install required dependencies (React, Tailwind CSS, etc.)
Configure your components.json file
Add necessary utility files
If you already have a Next.js project, running init will configure it to work with shadcn/ui components.
You can now start adding Magic UI components to your project using the shadcn CLI:
npx shadcn@latest add @magicui/blur-fade
npx shadcn@latest add @magicui/blur-fade
npx shadcn@latest add @magicui/marquee
npx shadcn@latest add @magicui/globe
npx shadcn@latest add @magicui/particles
Download the component source code
Place it in your components/ui directory
Install any required dependencies
Update your import paths automatically
The command above will add the component to your project. You can then import it like this:
import { BlurFade } from "@/components/ui/blur-fade"
export default function Home () {
return (
< BlurFade delay = { 0.25 } inView >
< h1 > Welcome to Magic UI </ h1 >
< p > Beautiful animated components for your landing pages. </ p >
</ BlurFade >
)
}
Manual installation
If you prefer to install components manually:
Navigate to the component page (e.g.,
Blur Fade ) and copy the source code from the “Manual” tab.
Paste the component code into your project at components/ui/[component-name].tsx.
Make sure the import paths match your project setup. Update any relative imports to match your directory structure.
Most Magic UI components require Framer Motion. Install it if you haven’t already:
npm install framer-motion
Project structure
After installation, your project structure should look like this:
my-app/
├── app/
│ ├── layout.tsx
│ └── page.tsx
├── components/
│ └── ui/
│ ├── blur-fade.tsx
│ ├── marquee.tsx
│ └── globe.tsx
├── lib/
│ └── utils.ts
├── components.json
├── package.json
└── tailwind.config.ts
Next steps
Browse components Explore 50+ animated components ready to use in your project
MCP Integration Set up the MCP server for AI-assisted development