Pixel loader
A pixel spinner with a label and a running clock.
Reading the workspace 0s
Writing the migration 47s
Waiting on the tool
Installation
pnpm add @heyramzi/uiUsage
import { PixelLoader } from "@heyramzi/ui/ai/loading-state";Keyboard and accessibility
- The loader is a status named by its label, so a screen reader hears what the agent is doing.
- The elapsed clock sits inside the status, so some screen readers read every tick. Set elapsed={false} if that's noisy.
- With reduced motion on, the grid and the shimmer stop.
API reference
labelstring- Default
"Working" - What the agent is doing. Read out by screen readers.
elapsedboolean- Default
true - Show the running clock beside the label.
startSecondsnumber- Default
0 - Seconds already spent when the loader mounts, e.g. resuming a run.
classstring...rest- Every prop of
HTMLAttributes<HTMLDivElement>fromsvelte/elements
| Prop | Type | Default |
|---|---|---|
label What the agent is doing. Read out by screen readers. | string | "Working" |
elapsed Show the running clock beside the label. | boolean | true |
startSeconds Seconds already spent when the loader mounts, e.g. resuming a run. | number | 0 |
class | string | |
...rest | Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements | |