Flow beams
A how-it-works diagram: icon nodes joined by drawn connectors.
Preview
A beam of light travels from node to node along the connectors and each node glows as it arrives, in a loop. The loop stops when the diagram is off screen and has a pause button. With reduced motion turned on, it renders the plain layout.
How a signup reaches you
Sample flow for a made-up product.
- Step 1:
Visitor signs up
From the form in your hero.
- Step 2:
Email is stored
In your own database.
- Step 3:
Welcome goes out
Through your mail provider.
- Step 4:
You launch
To a list that asked for it.
How a signup reaches you
Sample flow for a made-up product.
- Step 1:
Visitor signs up
From the form in your hero.
- Step 2:
Email is stored
In your own database.
- Step 3:
Welcome goes out
Through your mail provider.
- Step 4:
You launch
To a list that asked for it.
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { FlowBeams } from "@/components/custom/flow-beams";
<FlowBeams
title="How it works"
nodes={[
{ icon: <MousePointerClick />, label: "Visitor signs up", description: "…" },
{ icon: <Database />, label: "Email is stored" },
{ icon: <Rocket />, label: "You launch" },
]}
/>import { FlowBeamsMotion } from "@/components/custom/flow-beams/flow-beams-motion";
<FlowBeamsMotion nodes={nodes} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| nodes* (required) | { icon: ReactNode; label: string; description? }[] | – | 3 to 5 read best. Pass icons as rendered elements (<Zap />), not components. |
| title / description | string | – | Optional heading (h2) and line under it. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| nodes* (required) | { icon: ReactNode; label: string; description? }[] | – | 3 to 5 read best. Pass icons as rendered elements (<Zap />), not components. |
| title / description | string | – | Optional heading (h2) and line under it. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- An ordered list; each node is announced as “Step N” with an h3.
- Icons, connectors and beams are decorative and hidden from screen readers.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.