Command Palette

Search for a command to run...

Loaders/Dot Matrix Loader

Dot Matrix Loader

A grid of dots with ripple, wave, and cascade animation effects

Open in v0Open in
Loading

Overview

A grid of dots with configurable animation patterns including ripple, wave, and rain effects. CSS-only with computed stagger delays.

Installation

npx shadcn@latest add @elements/loader-dot-matrix

Usage

import { LoaderDotMatrix } from "@/components/elements/loader-dot-matrix";

export function Loading() {
  return <LoaderDotMatrix rows={5} cols={7} pattern="ripple" />;
}

Props

PropTypeDefaultDescription
rowsnumber5Number of rows
colsnumber7Number of columns
pattern"ripple" | "wave" | "rain""ripple"Animation pattern
speednumber1.5Animation speed in seconds
dotSizenumber3Size of dots in pixels
classNamestring-Additional CSS classes