All CellForge Loaders
cellforge/allFreeComponent
Installs every CellForge loader and shared runtime files in one command.
Install it
npx shadcn@latest add https://cellforge.dev/r/all.jsonSource
1"use client";23import type { CSSProperties } from "react";45import { 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";1112export type CellSquare1Props = CellForgeCommonProps;1314const animationResolver: DotAnimationResolver = ({ isActive, index, row, col, reducedMotion, phase }) => {15 if (!isActive) {16 return { className: "dmx-inactive" };17 }1819 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": parity25 } as CSSProperties;2627 if (reducedMotion || phase === "idle") {28 return {29 style: {30 ...style,31 opacity: parity === 0 ? 0.88 : 0.1432 }33 };34 }3536 return { className: "dmx-diagonal-alt-sweep", style };37};3839export function CellSquare1({40 speed = 1.1,41 pattern = "full",42 animated = true,43 hoverAnimated = false,44 ...rest45}: CellSquare1Props) {46 const reducedMotion = usePrefersReducedMotion();47 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useCellForgePhases({48 animated: Boolean(animated && !reducedMotion),49 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),50 speed51 });5253 return (54 <CellForgeBase55 {...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}
More from @cellforge
All 71 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Core Spokescell-angle-1 | @cellforge | Components | Free | no deps | |
| Column Rakecell-angle-10 | @cellforge | Components | Free | no deps | |
| Shelf Descentcell-angle-11 | @cellforge | Components | Free | no deps | |
| Skew Driftcell-angle-12 | @cellforge | Components | Free | no deps | |
| Serpent Zipcell-angle-13 | @cellforge | Components | Free | no deps | |
| Pillar Sweepcell-angle-14 | @cellforge | Components | Free | no deps | |
| Tripod Handoffcell-angle-15 | @cellforge | Components | Free | no deps | |
| Updraftcell-angle-16 | @cellforge | Components | Free | no deps |
