BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@dotmatrix/all

All Dot Matrix Loaders

dotmatrix/all
FreeComponent

Installs every Dot Matrix loader and shared runtime files in one command.

Install it

npx shadcn@latest add https://dotmatrix.zzzzshawn.cloud/r/all.json

Source

components/ui/dotm-square-1.tsxdotmatrix.zzzzshawn.cloud/r/all.json
1"use client";
2
3import type { CSSProperties } from "react";
4
5import { DotMatrixBase } from "@/components/ui/dotmatrix-core";
6import { useDotMatrixPhases } from "@/components/ui/dotmatrix-hooks";
7import { trBlPathNormFromIndex } from "@/components/ui/dotmatrix-core";
8import { usePrefersReducedMotion } from "@/components/ui/dotmatrix-hooks";
9import type { DotAnimationResolver } from "@/components/ui/dotmatrix-core";
10import type { DotMatrixCommonProps } from "@/components/ui/dotmatrix-core";
11
12export type DotmSquare1Props = DotMatrixCommonProps;
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 DotmSquare1({
40 speed = 1.1,
41 pattern = "full",
42 animated = true,
43 hoverAnimated = false,
44 ...rest
45}: DotmSquare1Props) {
46 const reducedMotion = usePrefersReducedMotion();
47 const { phase: matrixPhase, onMouseEnter, onMouseLeave } = useDotMatrixPhases({
48 animated: Boolean(animated && !reducedMotion),
49 hoverAnimated: Boolean(hoverAnimated && !reducedMotion),
50 speed
51 });
52
53 return (
54 <DotMatrixBase
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
@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
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
Smiley Spindotm-3x3-16@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