GodUIGodUI
109Follow on X

Animated Beam

tsx
import { AnimatedBeam } from "@/components/godui/animated-beam";import { useRef } from "react";export function AnimatedBeamDemo() {const containerRef = useRef(null);const fromRef = useRef(null);const toRef = useRef(null);return (  <div ref={containerRef} className="relative flex items-center justify-between">    <div ref={fromRef} className="size-12 rounded-full bg-card" />    <div ref={toRef} className="size-16 rounded-full bg-primary" />    <AnimatedBeam containerRef={containerRef} fromRef={fromRef} toRef={toRef} />  </div>);}