Tracing Beam

Motion

A React tracing beam that draws a glowing SVG line beside long content as the reader scrolls, with a bright tip and a node that lights up for each entry.

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

Installation#

bash
npx shadcn@latest add @minidev/tracing-beam

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/tracing-beam.json

Usage#

tsx
import { TracingBeam } from "@/components/ui/tracing-beam"

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

API reference#

TracingBeam props
PropTypeDefault
itemsTracingBeamItem[]DEFAULT_ITEMS
childrenReact.ReactNode-
colorstring"var(--accent)"
railnumber40
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files
All Animated React components