Progress button Pro
Get Pro at $9
One payment, every Pro piece. $10 tomorrow.
Install
npx shadcn@latest add @mu-pro/progress-buttonPro. Installs with your licence key through the @mu-pro registry; the key comes with Pro. Lands in components/mu/progress-button/ with the shared foundation.
Usage
import { ProgressButton } from "@/components/mu/progress-button/ProgressButton";
<ProgressButton size="md" progress={loaded / total} onClick={start} labels={{ progress: "Uploading {n}%", done: "Uploaded" }}>
Upload
</ProgressButton>Source
How it works
Building with an agent? Hand it a ready prompt for this piece.
Input and reduced motion
- Pointer / touch / keyboard: it is a button: a click, Space or Enter calls your
onClick. It never holds; the level is your job's. - Busy: while it runs it says the percent in words (
role="status"announces done). - Reduced motion: the level is drawn flat with no chop; it still follows the progress (it is the measure).
Props
| Prop | Default | What it does |
|---|---|---|
progress | — (required) | 0–1 | your job's progress: the level and the percent follow it; at 1 it says done |
children | — | text | the words before it starts; also the accessible name |
size | "lg" | lg 50px, md 16px, sm 8px | the body's height; md and sm show no words, which stay the accessible name |
tone | "info" | danger, info, success | the liquid's light |
labels | {n}%, Done | strings | progress (a template: {n} is the percent), done |
className | — | — | added to the root |
Sound
None. It loads in silence.
None.
Licence
Included with Pro: use it in unlimited end products for you and your clients; no reselling as a kit. See the licence.
A job's progress fills the button with liquid light, and it says the percent until it lands.
For exports, uploads and long jobsMore in Usage & billing