Animated Beam

Motion

Light travels along curved paths from sources into a hub and out to a result, measured from the real DOM. Includes a Beam primitive to connect any two elements.

src/registry/premium/animated-beam.tsx/r/animated-beam.json

Installation#

bash
npx shadcn@latest add https://ui.minidev.pro/r/animated-beam.json

Usage#

tsx
import { AnimatedBeam } from "@/components/ui/animated-beam"

export function Example() {
  return <AnimatedBeam />
}

API reference#

AnimatedBeam props
PropTypeDefault
inputsNode[][ { icon: MailIcon, label: "Email" },...
hubNode{ icon: BotIcon, label: "Agent" }
outputNode{ icon: UserIcon, label: "Customer" }
classNamestring-

Dependencies#

npm

lucide-reactmotion

Built from

No other MiniDev files
All Animated React components