UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: particles ref type to Circle (#290)
Mikha Thet913a9422324f
diff --git a/registry/components/magicui/particles.tsx b/registry/components/magicui/particles.tsxindex d08df375..f372832a 100644--- a/registry/components/magicui/particles.tsx+++ b/registry/components/magicui/particles.tsx@@ -70,7 +70,7 @@ const Particles: React.FC<ParticlesProps> = ({const canvasRef = useRef<HTMLCanvasElement>(null);const canvasContainerRef = useRef<HTMLDivElement>(null);const context = useRef<CanvasRenderingContext2D | null>(null);- const circles = useRef<any[]>([]);+ const circles = useRef<Circle[]>([]);const mousePosition = MousePosition();const mouse = useRef<{ x: number; y: number }>({ x: 0, y: 0 });const canvasSize = useRef<{ w: number; h: number }>({ w: 0, h: 0 });