FX · Backgrounds

Right-angled circuit traces with pulses of light running along them.

Signal path

Terminal
npx shadcn@latest add https://www.rad-ui.com/r/circuit-traces.json
React
import CircuitTraces from "@/components/fx/circuit-traces" <CircuitTraces className="px-8 py-24"> <h2>Your content</h2> </CircuitTraces>
  • The effect layer is aria-hidden and ignores pointer events; only children are exposed.
  • Pauses offscreen; `paused` stops it on demand (wire it to a visible control if it runs behind reading content).
  • prefers-reduced-motion: reduce (or data-rad-fx-motion="reduce" on an ancestor) shows the traces without pulses.
PropTypeDefaultDescription
count
number14

Number of traces.

color
string'#22d3ee'

Trace colour.

seed
number8

Change for a different, stable layout.

paused
booleanfalse

Stop the animation. It also pauses offscreen.

...props
ComponentProps<'div'>—

Passed to the root div; children render above.