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-orbit-4

Radar Arc

cellforge/cell-orbit-4
FreeComponent

A rotating radar arm scans the circular grid with a bright beam front, soft wake, and faint perimeter ring echo.

Install it

npx shadcn@latest add https://cellforge.dev/r/cell-orbit-4.json

Source

components/ui/cell-orbit-4.tsxcellforge.dev/r/cell-orbit-4.json
1"use client";
2
3import { useMemo } from "react";
4
5import { CellForgeBase } from "@/components/ui/cellforge-core";
6import { useCellForgePhases } from "@/components/ui/cellforge-hooks";
7import { isWithinCircularMask } from "@/components/ui/cellforge-core";
8import { useCyclePhase } from "@/components/ui/cellforge-hooks";
9import { usePrefersReducedMotion } from "@/components/ui/cellforge-hooks";
10import type { DotAnimationResolver, CellForgeCommonProps } from "@/components/ui/cellforge-core";
11
12export type CellOrbit4Props = CellForgeCommonProps;
13
14const BASE_OPACITY = 0.08;
15const SWEEP_OPACITY = 0.96;
16const NEAR_SWEEP_OPACITY = 0.36;
17const RING_OPACITY = 0.22;
18
19export function CellOrbit4({
20 speed = 1.55,
21 animated = true,
22 hoverAnimated = false,
23 ...rest
24}: CellOrbit4Props) {
25 const reducedMotion = usePrefersReducedMotion();
26 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useCellForgePhases({
27 animated: Boolean(animated && !reducedMotion),
28 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),
29 speed
30 });
31 const phase = useCyclePhase({
32 active: !reducedMotion && matrixPhase !== "idle",
33 cycleMsBase: 1800,
34 speed
35 });
36
37 const resolver = useMemo<DotAnimationResolver>(() => {
38 return ({ row, col, phase: p }) => {
39 if (!isWithinCircularMask(row, col)) {
40 return { className: "dmx-inactive" };
41 }
42
43 const centerRow = row - 2;
44 const centerCol = col - 2;
45 const radius = Math.hypot(centerRow, centerCol);
46 const theta = (reducedMotion || p === "idle" ? 0 : phase) * Math.PI * 2;
47 const sweepX = Math.cos(theta);
48 const sweepY = Math.sin(theta);
49 const projection = centerCol * sweepX + centerRow * sweepY;
50 const perpendicular = Math.abs(centerCol * sweepY - centerRow * sweepX);
51
52 if (radius < 0.5) {
53 return { style: { opacity: 0.62 } };
54 }
55
56 if (projection > 0.3 && perpendicular < 0.55) {
57 return { style: { opacity: SWEEP_OPACITY } };
58 }
59
60 if (projection > 0 && perpendicular < 1.15) {
61 return { style: { opacity: NEAR_SWEEP_OPACITY } };
62 }
63
64 if (radius > 1.6 && radius < 2.3) {
65 return { style: { opacity: RING_OPACITY } };
66 }
67
68 return { style: { opacity: BASE_OPACITY } };
69 };
70 }, [reducedMotion, phase]);
71
72 return (
73 <CellForgeBase
74 {...rest}
75 size={rest.size ?? 36}
76 dotSize={rest.dotSize ?? 5}
77 speed={speed}
78 pattern="full"
79 animated={animated}
80// … 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