BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@cellforge/cell-lattice-8

Glyph Flip

cellforge/cell-lattice-8
FreeComponent

Crisp symbolic masks flip between stars, chevrons, and rails for a snappy pixel-glyph loader.

Install it

npx shadcn@latest add https://cellforge.dev/r/cell-lattice-8.json

Source

components/ui/cell-lattice-8.tsxcellforge.dev/r/cell-lattice-8.json · first 6 KB
1"use client";
2
3import type { CSSProperties } from "react";
4
5import { cx } from "@/components/ui/cellforge-core";
6import { resolveDmxColorTokens } from "@/components/ui/cellforge-core";
7import { styleOpacity, stylePx } from "@/components/ui/cellforge-core";
8import { remapOpacityToTriplet } from "@/components/ui/cellforge-core";
9import { dmxBloomHaloSpreadClass, dmxBloomRootActive, dmxDotBloomParts } from "@/components/ui/cellforge-core";
10import { getPatternIndexes } from "@/components/ui/cellforge-core";
11import { useCellForgePhases } from "@/components/ui/cellforge-hooks";
12import { useSteppedCycle } from "@/components/ui/cellforge-hooks";
13import { usePrefersReducedMotion } from "@/components/ui/cellforge-hooks";
14import type { CellForgeCommonProps } from "@/components/ui/cellforge-core";
15
16export type CellLattice8Props = CellForgeCommonProps;
17
18const ROW_COUNTS = [3, 4, 5, 4, 3] as const;
19const BASE_OPACITY = 0.2;
20const MID_OPACITY = 0.46;
21const HIGH_OPACITY = 0.98;
22const HEX_ROW_PITCH_RATIO = Math.sqrt(3) / 2;
23
24function hexPatternIndex(row: number, rowCount: number, col: number): number {
25 return row * ROW_COUNTS[2] + Math.floor((ROW_COUNTS[2] - rowCount) / 2) + col;
26}
27const FRAMES: readonly Readonly<Record<string, "x" | "o">>[] = [
28 { "0,1": "x", "1,1": "o", "1,2": "o", "2,0": "x", "2,2": "x", "2,4": "x", "3,1": "o", "3,2": "o", "4,1": "x" },
29 { "0,0": "x", "0,2": "x", "1,0": "o", "1,3": "o", "2,1": "x", "2,2": "o", "2,3": "x", "3,0": "o", "3,3": "o", "4,0": "x", "4,2": "x" },
30 { "0,1": "o", "1,0": "x", "1,3": "x", "2,0": "o", "2,2": "x", "2,4": "o", "3,0": "x", "3,3": "x", "4,1": "o" },
31 { "0,0": "o", "0,2": "o", "1,1": "x", "1,2": "x", "2,1": "o", "2,3": "o", "3,1": "x", "3,2": "x", "4,0": "o", "4,2": "o" }
32];
33
34function clamp01(n: number | undefined) {
35 if (n == null || !Number.isFinite(n)) return;
36 return Math.min(1, Math.max(0, n));
37}
38
39export function CellLattice8({
40 size = 34,
41 dotSize = 5,
42 color = "currentColor",
43 colorPreset,
44 ariaLabel = "Loading",
45 className,
46 muted = false,
47 bloom = false,
48 halo = 0,
49 dotClassName,
50 dotShape = "circle",
51 speed = 1.35,
52 animated = true,
53 hoverAnimated = false,
54 pattern = "full",
55 cellPadding,
56 boxSize,
57 minSize,
58 opacityBase,
59 opacityMid,
60 opacityPeak
61}: CellLattice8Props) {
62 const reducedMotion = usePrefersReducedMotion();
63// … truncated

Facts

Registry
@cellforge
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

cellforge.dev cellforge-dev/cellforge on GitHub Raw registry item This item as JSON

More from @cellforge

All 71 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
All CellForge Loadersall@cellforgeComponentsFreeno deps
Core Spokescell-angle-1@cellforgeComponentsFreeno deps
Column Rakecell-angle-10@cellforgeComponentsFreeno deps
Shelf Descentcell-angle-11@cellforgeComponentsFreeno deps
Skew Driftcell-angle-12@cellforgeComponentsFreeno deps
Serpent Zipcell-angle-13@cellforgeComponentsFreeno deps
Pillar Sweepcell-angle-14@cellforgeComponentsFreeno deps
Tripod Handoffcell-angle-15@cellforgeComponentsFreeno deps
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex