Skip to content

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

🐛 fix: update dependency

Dillion Verma683c3c163dc8
diff --git a/content/components/dot-pattern.mdx b/content/components/dot-pattern.mdx
index 2e755176..652e2225 100644
--- a/content/components/dot-pattern.mdx
+++ b/content/components/dot-pattern.mdx
@@ -17,6 +17,16 @@ video: https://cdn.magicuikit.com/dot-pattern.mp4
Copy and page the following code into your project.
+```tsx
+// lib/utils.tsx
+import clsx, { ClassValue } from "clsx";
+import { twMerge } from "tailwind-merge";
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs));
+}
+```
+
```text
components/magicui/dot-pattern.tsx
```
diff --git a/content/components/grid-pattern.mdx b/content/components/grid-pattern.mdx
index 24514797..604d5300 100644
--- a/content/components/grid-pattern.mdx
+++ b/content/components/grid-pattern.mdx
@@ -17,6 +17,16 @@ video: https://cdn.magicuikit.com/grid-pattern.mp4
Copy and page the following code into your project.
+```tsx
+// lib/utils.tsx
+import clsx, { ClassValue } from "clsx";
+import { twMerge } from "tailwind-merge";
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs));
+}
+```
+
```text
components/magicui/grid-pattern.tsx
```