Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

Use cn from lib (#25)

dooooooooootsdda1a4932e9b
diff --git a/registry/components/magicui/magic-card.tsx b/registry/components/magicui/magic-card.tsx
index 2312bac7..a786c4c3 100644
--- a/registry/components/magicui/magic-card.tsx
+++ b/registry/components/magicui/magic-card.tsx
@@ -1,6 +1,6 @@
"use client";
-import clsx, { ClassValue } from "clsx";
+import { cn } from "@/lib/utils";
import {
CSSProperties,
ReactElement,
@@ -9,11 +9,6 @@ import {
useRef,
useState,
} from "react";
-import { twMerge } from "tailwind-merge";
-
-export function cn(...inputs: ClassValue[]) {
- return twMerge(clsx(inputs));
-}
interface MousePosition {
x: number;