Updated
Beam Network
ProCustomize
One to many (hub)
arc
Flat at the hub
Curvature0.18
Always
In sync
Duration2.4s
Pause1.0s
Node size56px
Accent
Installation
ProBeam Network is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/beam-network
Loading your installation…
Usage
import { BeamNetwork } from "@/components/uibrik/beam-network/beam-network";const nodes = [ { id: "app", icon: <IconApp />, label: "Your app" }, { id: "db", icon: <IconDatabase />, label: "Database" }, { id: "cache", icon: <IconBolt />, label: "Cache" },];const links = [ { from: "app", to: "db" }, { from: "app", to: "cache", bidirectional: true },];<BeamNetwork nodes={nodes} links={links} curve="arc" bend="hub" curvature={0.18} trigger="always" timing="sync" duration={2.4} pause={1} nodeSize={56} showLabels={false} accent="#3b82f6" direction="horizontal" height={420}/>Where to use Beam Network
Integration diagrams
Beams of light travelling along curved links show data moving from connected tools into your product.
Pairs with Integration Orbit and Icon Hive
Data-flow explanations
Any shape of nodes and connections works, so a landing page can show how a pipeline actually runs.
Pairs with Flow Chart
Architecture overviews
Animated paths between services make a docs diagram easier to follow than static arrows.
Props
BeamNetwork- curve
- Type "arc" | "smooth" | "straight"
- "arc"
- Shape of the lines.
- bend
- Type "hub" | "edge"
- "hub"
- Which end of an arc runs flat: lines flatten into the busiest node, or sweep in from the outer nodes.
- curvature
- Type number
- 0.18
- How far arcs lean. Negative flips them.
- trigger
- Type "always" | "hover"
- "always"
- Show beams all the time or only on the lines of the node you point at.
- timing
- Type "sync" | "random"
- "sync"
- Fire every beam together and keep them in step, or give each its own speed and rests.
- duration
- Type number
- 2.4
- Seconds one beam takes to cross its line. In random, each pass varies around this.
- pause
- Type number
- 1
- Rest between a beam's passes. In random, each rest varies around this.
- nodeSize
- Type number
- 56
- Default circle diameter.
- showLabels
- Type boolean
- false
- Show each node's label under its circle.
- accent
- Type string
- "#3b82f6"
- Beam colour.
- nodesrequired
- Type { id: string; icon?: ReactNode; label?: string; x?: number; y?: number; size?: number }[]
- –
- The circles. Leave x and y out to place them from the links.
- linksrequired
- Type { from: string; to: string; curvature?: number; bend?: "hub" | "edge"; bidirectional?: boolean }[]
- –
- The lines. A beam runs from `from` to `to`.
- direction
- Type "horizontal" | "vertical"
- "horizontal"
- Which way unplaced nodes flow: columns or rows.
- height
- Type number
- 360
- Canvas height in px.
- className
- Type string
- –
- Classes for the canvas.