Docs
Installation

Installation

Install and configure Magic UI

Information

Magic UI currently only support React. This project and all components are written in TypeScript. We recommend using TypeScript for your project as well.

Prerequisites

These are the main dependencies you will need to get started.

npm install -D tailwindcss@latest clsx tailwind-merge framer-motion

Copy and paste the following code into your project.

// lib/utils.ts
import clsx, { ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
 
export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs));
}