UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: add pointer-events-none class to particles container (#361)
Saif Nasir9ef8b969a59e
diff --git a/registry/default/magicui/particles.tsx b/registry/default/magicui/particles.tsxindex f372832a..52613e34 100644--- a/registry/default/magicui/particles.tsx+++ b/registry/default/magicui/particles.tsx@@ -1,5 +1,6 @@"use client";+import { cn } from "@/lib/utils";import React, { useEffect, useRef, useState } from "react";interface MousePosition {@@ -269,7 +270,7 @@ const Particles: React.FC<ParticlesProps> = ({};return (- <div className={className} ref={canvasContainerRef} aria-hidden="true">+ <div className={cn("pointer-events-none", className)} ref={canvasContainerRef} aria-hidden="true"><canvas ref={canvasRef} className="size-full" /></div>);