Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

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/ui

Usage

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

label string
Default "Working"
What the agent is doing. Read out by screen readers.
elapsed boolean
Default true
Show the running clock beside the label.
startSeconds number
Default 0
Seconds already spent when the loader mounts, e.g. resuming a run.
class string
...rest
Every prop of HTMLAttributes<HTMLDivElement> from svelte/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