Loading component…
Loading component…
A progress pill with a shimmering label, busy pixels and a drifting glow
To reuse this local React demo, copy all files from the Code tab into the same folder, then import ProgressPill from ./progress-pill.
import { ProgressPill } from "@/components/ui/progress-pill";
export function Hero() {
return (
<section className="relative">
<h1>Reports that write themselves</h1>
<ProgressPill className="absolute right-0 top-24" />
</section>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| title | string | "Q3 revenue report" | What the agent is making – the card's title |
| name | string | "Analyst" | The agent's name, shown before the step it's on |
| steps | string[] | The steps the agent goes through, one after another as the subtitle – the bar fills one part per step, then it shows "Report ready" for a moment and starts over | |
| agent | string | "analyst" | The agent's id – its 3×3 pixel pattern comes from it |
| playing | boolean | true | Goes from step to step and starts over – false holds it on step |
| step | number | 1 | The step it shows when not playing |
| hold | number | 2600 | How long it stays on a step, in ms |
| className | string | Extra class on the root |
Fixed size, about 420 × 180px with its shadow and glow – scale it with zoom or a transform for smaller screens
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"