A drifting node graph with depth, twinkling glow sprites and distance-faded links. Nodes swirl toward the pointer and light up the links around it.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { CanvasConstellationPro } from "@/components/hyperblur-pro/canvas-constellation-pro"
<CanvasConstellationPro style={{ height: 480, background: "#05070f" }} />| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#7dd3fc", "#a78bfa", "#f0abfc"] | Node and link colors, picked at random per node. The first color also tints the pointer glow. |
| speed | number | 1 | Drift and twinkle speed multiplier. |
| density | number | 1 | Node count multiplier based on area. Capped at 180 nodes, or 90 on low-end devices. |
| linkDistance | number | 140 | Maximum distance in pixels at which two nodes are linked. Links fade out toward this distance. |
| interactive | boolean | true | Attract nearby nodes to the pointer and draw links to it. |
| pointerRadius | number | 200 | Radius in pixels of the pointer attraction field. |
| children | React.ReactNode | - | Content rendered on top of the background. |
| className | string | "" | Classes for the root element. Give it a size and a background color. |
| style | React.CSSProperties | - | Inline styles for the root element. |
Source code is included in Standard and above