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-angle-18

Hollow Shell

cellforge/cell-angle-18
FreeComponent

The heart cell stays locked dim while every other triangle dot breathes together in phase — a hollow, ring-like pulse.

Install it

npx shadcn@latest add https://cellforge.dev/r/cell-angle-18.json

Source

components/ui/cell-angle-18.tsxcellforge.dev/r/cell-angle-18.json
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 { useCellForgePhases } from "@/components/ui/cellforge-hooks";
8import { styleOpacity, stylePx } from "@/components/ui/cellforge-core";
9import { remapOpacityToTriplet } from "@/components/ui/cellforge-core";
10import { dmxBloomRootActive, dmxDotBloomParts } from "@/components/ui/cellforge-core";
11import { useCyclePhase } from "@/components/ui/cellforge-hooks";
12import { usePrefersReducedMotion } from "@/components/ui/cellforge-hooks";
13import type { CellForgeCommonProps } from "@/components/ui/cellforge-core";
14
15export type CellAngle18Props = CellForgeCommonProps;
16
17const MATRIX_SIZE = 7;
18
19const CORE_DIM = 0.1;
20const SHELL_LOW = 0.22;
21const SHELL_HIGH = 0.96;
22
23const TRIANGLE_CELLS = new Set([
24 "1,3",
25 "2,2",
26 "2,4",
27 "3,1",
28 "3,3",
29 "3,5",
30 "4,0",
31 "4,2",
32 "4,4",
33 "4,6"
34]);
35
36function isWithinTriangleMask(row: number, col: number): boolean {
37 if (row < 0 || row >= MATRIX_SIZE || col < 0 || col >= MATRIX_SIZE) {
38 return false;
39 }
40
41 return TRIANGLE_CELLS.has(`${row},${col}`);
42}
43
44function smoothstep01(edge0: number, edge1: number, x: number): number {
45 if (edge1 <= edge0) {
46 return x >= edge1 ? 1 : 0;
47 }
48 const t = Math.max(0, Math.min(1, (x - edge0) / (edge1 - edge0)));
49 return t * t * (3 - 2 * t);
50}
51
52/**
53 * Heart cell stays dim while the outer shell breathes in sync — inverted emphasis vs center-led
54 * corona loaders.
55 */
56function opacityForCell(row: number, col: number, phase: number): number {
57 if (row === 3 && col === 3) {
58 return CORE_DIM;
59 }
60
61 const breathe = 0.5 + 0.5 * Math.sin(phase * Math.PI * 2);
62 const crest = smoothstep01(0.2, 0.94, breathe);
63 return SHELL_LOW + crest * (SHELL_HIGH - SHELL_LOW);
64}
65
66export function CellAngle18({
67 size = 30,
68 dotSize = 6.5,
69 color = "currentColor",
70 colorPreset,
71 ariaLabel = "Loading",
72 className,
73 muted = false,
74 bloom = false,
75 halo = 0,
76 dotClassName,
77 dotShape = "circle",
78 speed = 1.6,
79 animated = true,
80 hoverAnimated = false,
81 cellPadding,
82 opacityBase,
83 opacityMid,
84 opacityPeak
85}: CellAngle18Props) {
86 const reducedMotion = usePrefersReducedMotion();
87 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useCellForgePhases({
88 animated: Boolean(animated && !reducedMotion),
89 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),
90 speed
91 });
92// … 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