Progress
A candy-cane progress bar with a tiny mochi riding the front of it. Each step forward it rolls and kicks up clouds. At 100% it jumps for joy in a ring of emphasis lines.
Installation
❯ npx shadcn@latest add https://yan.moe/r/progress.jsonUsage
import { Progress } from "@/components/ui/progress"<Progress value={60} aria-label="Upload" />Accessibility
- Built on Radix Progress:
role="progressbar"witharia-valuenowkept in sync. - Give it an
aria-labeldescribing what is loading. - The rider is decorative and
aria-hidden. Withprefers-reduced-motion: reduce, the stripes stop, the width changes instantly and the rolling, clouds and party are skipped.
API
| Prop | Type | Default |
|---|---|---|
intensitykawaii: the rider rolls, kicks up clouds and jumps at 100%. subtle: it rides quietly and sparkles at 100%. off: a plain bar. | "kawaii" | "subtle" | "off" | "kawaii" |
valueCurrent progress. | number | 0 |
maxValue that counts as complete. | number | 100 |
sfxSticker shown at 100% in kawaii mode. false hides it. | string | false | "やった!" |
fxOverrides for the burst fired at 100%. | BurstOptions | - |