Dot Matrix Loader
betaAn AI thinking pill: a 9×9 LED dot matrix playing one of eight rhythms — Game of Life, a breathing ring, an orbit, a face — beside a shimmering label.
- AI
- 1 file
- 1 npm package
- Accessibility notes
- Draws on a canvas
Loading the example…
pnpm dlx @dowel-ui/cli add dot-matrix-loadernpm packages installed: class-variance-authority.
import { DOT } from "@/components/ui/dot-matrix-loader";Default
Patterns
Tones
Sizes
<DotMatrixLoader>
| Prop | Type | Default |
|---|---|---|
labelVisible text beside the matrix. Also what is announced. Pass "" to hide it. | string | "Thinking" |
patternWhich rhythm the matrix plays. | DotMatrixLoaderPattern | "ring" |
seedSeeds the | number | 7 |
shimmerSweep a light band across the label. On by default. | boolean | true |
size | "sm" | "md" | "lg" | "md" |
srLabelAnnounced when there is no visible label. | string | "Loading" |
toneThe LED colour. Each rhythm has its own when this is not given. | DotMatrixLoaderTone | — |
Plus every attribute of <span> except children.
The root is a single role="status" region announcing the label (or `srLabel`, "Loading" by default). The canvas matrix is aria-hidden. It is an indicator: under reduced motion it runs at half speed rather than stopping, while the label's shine is dropped. It pauses off screen and in background tabs. The capsule is dark in both themes and the label keeps at least 4.5:1 against it. The matrix never mirrors in right-to-left layouts.
6/7
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — fails
- Motion from tokens — does not apply
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes