Grid Loader
betaIndeterminate loading indicators on a grid of cells — 48 patterns (and 17 SmoothUI alias names) that pulse or stagger, plus sequence, thinking and matrix.
- Feedback
- 1 file
- 1 npm package
- Accessibility notes
pnpm dlx @dowel-ui/cli add grid-loadernpm packages installed: class-variance-authority.
import { GridLoader } from "@/components/ui/grid-loader";Default
Gallery
Sizes
Inherits Colour
<GridLoader>
| Prop | Type | Default |
|---|---|---|
glowA soft halo around each lit cell. Reads best on a dark surface. | boolean | false |
labelAnnounced to assistive technology while the loader is visible. Omit it when the loader sits inside something that already reports its busy state — announcing twice is worse than not announcing at all. | string | — |
modeHow the lit cells of a pattern move: together ( | GridLoaderMode | "pulse" |
roundedCircular cells instead of rounded squares. | boolean | false |
size | "sm" | "md" | "lg" | "xl" | "md" |
speedCycle length: | GridLoaderSpeed | "normal" |
variantWhich pattern to play. | GridLoaderVariant | "plus-hollow" |
Plus every attribute of <span> except children.
7/7
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — does not apply
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes