affectUI › Illustrations › Product scenes
Progress Pill
An agent building a report as a slim pill – its pixel mark, the title and how far it is, the step it's on as a subtitle, a thin bar with a shimmer, a soft color glow beneath.
Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/progress-pill.json · Import from @/components/ui/progress-pill
When to use
- Hero or feature section of an AI product that does long work for people – reports, research, builds – to show it's happening
- Beside a headline or at the edge of a card – the pill runs out into the page on the right, so it can sit against an edge
- Launch posts and OG images – a still frame with playing={false} reads well small
When not to use
- As a real progress indicator – it's a picture of one and makes up its own progress. Use Progress Tracker or Thinking Loader for that
- In tight spaces – it needs about 420 × 180px, and its fade wants room on the right
Usage
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>
);
}Props
| 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 |
Accessibility
- Decorative: the whole illustration is hidden from screen readers and takes no clicks
- With prefers-reduced-motion nothing moves: it stays on one step, without shimmer, sheen or twinkle
Responsive
- 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"
Requirements
- React 19
Related
- Model Menu – A model picker – DeepSeek, GPT, Claude, Gemini and more with their marks, a pink band gliding to the picked one, its right edge and foot fading into the page
- Inspect Agent Card – An agent card seen like a selection in a design tool – tilted back, with a blue frame, spacing numbers and a red guide walking through its rows
- Thinking Loader – A small working pill for AI replies – an eight-ray spinner and a shimmering label that rolls through phases and settles on a check
- Progress Tracker – Onboarding checklist with an animated progress bar, ticks that draw themselves and auto play