BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@cellforge/all

All CellForge Loaders

cellforge/all
FreeComponent

Installs every CellForge loader and shared runtime files in one command.

Install it

npx shadcn@latest add https://cellforge.dev/r/all.json

Source

components/ui/cell-square-1.tsxcellforge.dev/r/all.json
1"use client";
2
3import type { CSSProperties } from "react";
4
5import { CellForgeBase } from "@/components/ui/cellforge-core";
6import { useCellForgePhases } from "@/components/ui/cellforge-hooks";
7import { trBlPathNormFromIndex } from "@/components/ui/cellforge-core";
8import { usePrefersReducedMotion } from "@/components/ui/cellforge-hooks";
9import type { DotAnimationResolver } from "@/components/ui/cellforge-core";
10import type { CellForgeCommonProps } from "@/components/ui/cellforge-core";
11
12export type CellSquare1Props = CellForgeCommonProps;
13
14const animationResolver: DotAnimationResolver = ({ isActive, index, row, col, reducedMotion, phase }) => {
15 if (!isActive) {
16 return { className: "dmx-inactive" };
17 }
18
19 const path = trBlPathNormFromIndex(index);
20 const slice = row + (4 - col);
21 const parity = slice % 2;
22 const style = {
23 "--dmx-path": path,
24 "--dmx-diagonal-parity": parity
25 } as CSSProperties;
26
27 if (reducedMotion || phase === "idle") {
28 return {
29 style: {
30 ...style,
31 opacity: parity === 0 ? 0.88 : 0.14
32 }
33 };
34 }
35
36 return { className: "dmx-diagonal-alt-sweep", style };
37};
38
39export function CellSquare1({
40 speed = 1.1,
41 pattern = "full",
42 animated = true,
43 hoverAnimated = false,
44 ...rest
45}: CellSquare1Props) {
46 const reducedMotion = usePrefersReducedMotion();
47 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useCellForgePhases({
48 animated: Boolean(animated && !reducedMotion),
49 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),
50 speed
51 });
52
53 return (
54 <CellForgeBase
55 {...rest}
56 size={rest.size ?? 36}
57 dotSize={rest.dotSize ?? 5}
58 speed={speed}
59 pattern={pattern}
60 animated={animated}
61 phase={matrixPhase}
62 onMouseEnter={onMouseEnter}
63 onMouseLeave={onMouseLeave}
64 reducedMotion={reducedMotion}
65 animationResolver={animationResolver}
66 />
67 );
68}

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
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
Updraftcell-angle-16@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