BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@dotmatrix/dotm-circular-9

Star Compass

dotmatrix/dotm-circular-9
FreeComponent

A cardinal beacon pattern: N/E/S/W sectors pulse in sequence with a dim opposite echo, creating a clear directional rhythm in the circular mask.

Install it

npx shadcn@latest add https://dotmatrix.zzzzshawn.cloud/r/dotm-circular-9.json

Source

components/ui/dotm-circular-9.tsxdotmatrix.zzzzshawn.cloud/r/dotm-circular-9.json
1"use client";
2
3import { useMemo } from "react";
4
5import { DotMatrixBase } from "@/components/ui/dotmatrix-core";
6import { useDotMatrixPhases } from "@/components/ui/dotmatrix-hooks";
7import { isWithinCircularMask } from "@/components/ui/dotmatrix-core";
8import { usePrefersReducedMotion } from "@/components/ui/dotmatrix-hooks";
9import { useSteppedCycle } from "@/components/ui/dotmatrix-hooks";
10import type { DotAnimationResolver, DotMatrixCommonProps } from "@/components/ui/dotmatrix-core";
11
12export type DotmCircular9Props = DotMatrixCommonProps;
13
14const STEP_COUNT = 36;
15const BASE_OPACITY = 0.07;
16const MID_OPACITY = 0.28;
17const STAR_OPACITY = 0.96;
18
19export function DotmCircular9({
20 speed = 5.55,
21 animated = true,
22 hoverAnimated = false,
23 ...rest
24}: DotmCircular9Props) {
25 const reducedMotion = usePrefersReducedMotion();
26 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useDotMatrixPhases({
27 animated: Boolean(animated && !reducedMotion),
28 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),
29 speed
30 });
31 const step = useSteppedCycle({
32 active: !reducedMotion && matrixPhase !== "idle",
33 cycleMsBase: 1900,
34 steps: STEP_COUNT,
35 speed,
36 });
37
38 const resolver = useMemo<DotAnimationResolver>(() => {
39 return ({ row, col, phase }) => {
40 if (!isWithinCircularMask(row, col)) {
41 return { className: "dmx-inactive" };
42 }
43
44 const x = col - 2;
45 const y = row - 2;
46 const ring = Math.sqrt(x * x + y * y);
47 const angle = Math.atan2(y, x);
48 const t = reducedMotion || phase === "idle" ? 0 : (step / STEP_COUNT) * Math.PI * 2;
49 const cardinalCenters = [0, Math.PI / 2, Math.PI, -Math.PI / 2];
50 const beaconIndex = Math.floor((step / STEP_COUNT) * cardinalCenters.length) % cardinalCenters.length;
51 const activeCenter = cardinalCenters[beaconIndex]!;
52 const oppositeCenter = cardinalCenters[(beaconIndex + 2) % cardinalCenters.length]!;
53
54 const distanceToActive = Math.acos(Math.cos(angle - activeCenter));
55 const distanceToOpposite = Math.acos(Math.cos(angle - oppositeCenter));
56 const activeBeam = Math.max(0, 1 - distanceToActive / 0.5);
57 const oppositeBeam = Math.max(0, 1 - distanceToOpposite / 0.65);
58 const ringTier = Math.round(ring);
59
60 let opacity = BASE_OPACITY;
61 if (activeBeam > 0.8 && ringTier >= 2) {
62 opacity = STAR_OPACITY;
63 } else if (activeBeam > 0.45 && ringTier >= 1) {
64 opacity = 0.62;
65// … truncated

Facts

Registry
@dotmatrix
Type
registry:ui
Access
Free
Files written
0
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
today

Go to the source

dotmatrix.zzzzshawn.cloud zzzzshawn/matrix on GitHub Raw registry item This item as JSON

More from @dotmatrix

All 91 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
All Dot Matrix Loadersall@dotmatrixComponentsFreeno deps
Square Spiraldotm-3x3-1@dotmatrixComponentsFreeno deps
Frame Chasedotm-3x3-10@dotmatrixComponentsFreeno deps
Glyph Pulsedotm-3x3-11@dotmatrixComponentsFreeno deps
Drop Rippledotm-3x3-12@dotmatrixComponentsFreeno deps
Right Surgedotm-3x3-13@dotmatrixComponentsFreeno deps
Comet Traildotm-3x3-14@dotmatrixComponentsFreeno deps
Echo Ringsdotm-3x3-15@dotmatrixComponentsFreeno 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