BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/loomui/grid-beams

Grid Beams

loomui/grid-beams
FreeComponent

A ruled grid with neon beams running down random lines, fading out toward the edges.

Live preview

live · rendered by the registry
Rendered by loomui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://loomui.design/r/grid-beams.json

Source

registry/loomui/grid-beams.tsxloomui.design/r/grid-beams.json · first 6 KB
1"use client"
2
3import * as React from "react"
4
5import { cn } from "@/lib/utils"
6import { useInViewport } from "@/registry/lib/use-in-viewport"
7
8export interface GridBeamsProps extends React.ComponentProps<"div"> {
9 /** Grid cell size in pixels. */
10 cellSize?: number
11 /** How many beams travel at once. */
12 beams?: number
13 /** Colours the beams are drawn from, one picked per beam. */
14 colors?: string[]
15 /** Seconds for one beam to cross the container. */
16 duration?: number
17 /** Length of a beam, as a percentage of the container it crosses. */
18 length?: string
19 /** Thickness of a beam in pixels. */
20 thickness?: number
21 /** Opacity of the static grid lines. */
22 lineOpacity?: number
23 /** Which way beams travel. `both` mixes the two. */
24 axis?: "vertical" | "horizontal" | "both"
25 /** Fade the layer out. `true` fades from the top, or pass a CSS mask. */
26 fade?: boolean | string
27 /** Changes which lines are chosen. Same seed, same layout, every render. */
28 seed?: number
29 /** Render the grid with no beams. */
30 disabled?: boolean
31}
32
33const DEFAULT_COLORS = ["#22d3ee", "#38bdf8", "#a855f7", "#f472b6"]
34
35/** Matches the hero: bright at the top, gone by the middle. */
36/** Rounded off rather than ramped: a two-stop ramp meets full opacity at a
37 * point the eye reads as a hard line. */
38const TOP_FADE =
39 "radial-gradient(ellipse 75% 55% at 50% 0%, black 30%, rgba(0,0,0,0.5) 65%, transparent 100%)"
40
41/** Mulberry32. Deterministic so a seed always gives the same layout. */
42function createRandom(seed: number) {
43 let state = seed >>> 0
44 return () => {
45 state = (state + 0x6d2b79f5) >>> 0
46 let t = state
47 t = Math.imul(t ^ (t >>> 15), t | 1)
48 t ^= t + Math.imul(t ^ (t >>> 7), t | 61)
49 return ((t ^ (t >>> 14)) >>> 0) / 4294967296
50 }
51}
52
53export function GridBeams({
54 cellSize = 64,
55 beams = 7,
56 colors = DEFAULT_COLORS,
57 duration = 4,
58 length = "24%",
59 thickness = 2,
60 lineOpacity = 0.05,
61 axis = "both",
62 fade = true,
63 seed = 1,
64 disabled = false,
65 className,
66 style,
67 ...props
68}: GridBeamsProps) {
69 const ref = React.useRef<HTMLDivElement>(null)
70 const [box, setBox] = React.useState({ width: 0, height: 0 })
71
72 // Grid lines land on fixed pixel multiples, so which of them are actually
73 // on screen depends on how big the container is. Measuring is what keeps
74 // every beam inside the frame instead of scattering some past the edge.
75 React.useEffect(() => {
76 const node = ref.current
77 if (!node) {
78 return
79 }
80
81// … truncated

What it pulls in

Other registry items

  • utils
  • use-in-viewport

Files it writes

  • registry/loomui/grid-beams.tsx

Facts

Registry
loomui
Type
registry:ui
Access
Free
Files written
1
Theme wiring
ships cssVars
Licence
MIT
In the index
at or before 2026-08-20
Last confirmed
yesterday

Go to the source

Docs on loomui loomui.design rjcuff/Loom-UI on GitHub Raw registry item This item as JSON

More from loomui

All 91 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Aurora Backdropaurora-backdroploomuiComponentsFreeno deps
Bento Gridbento-gridloomuiComponentsFreeno deps
Card Stackcard-stackloomuiComponentsFreeno deps
Compare Slidercompare-sliderloomuiComponentsFreeno deps
Confetti Buttonconfetti-buttonloomuiComponentsFreeno deps
Count Upcount-uploomuiComponentsFreeno deps
Credit Cardcredit-cardloomuiComponentsFreeno deps
DrawerdrawerloomuiComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored on what can be checked

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex