UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
Update animated-beam.tsx (#434)
Jason Aw5d2d36027ead
diff --git a/registry/default/magicui/animated-beam.tsx b/registry/default/magicui/animated-beam.tsxindex 2f64c65b..3015cb6b 100644--- a/registry/default/magicui/animated-beam.tsx+++ b/registry/default/magicui/animated-beam.tsx@@ -7,9 +7,9 @@ import { cn } from "@/lib/utils";export interface AnimatedBeamProps {className?: string;- containerRef: RefObject<HTMLElement>; // Container ref- fromRef: RefObject<HTMLElement>;- toRef: RefObject<HTMLElement>;+ containerRef: RefObject<HTMLElement | null>; // Container ref+ fromRef: RefObject<HTMLElement | null>;+ toRef: RefObject<HTMLElement | null>;curvature?: number;reverse?: boolean;pathColor?: string;