Docs menu

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.json

Usage

tsx
import { Progress } from "@/components/ui/progress"
tsx
<Progress value={60} aria-label="Upload" />

Accessibility

  • Built on Radix Progress: role="progressbar" with aria-valuenow kept in sync.
  • Give it an aria-label describing what is loading.
  • The rider is decorative and aria-hidden. With prefers-reduced-motion: reduce, the stripes stop, the width changes instantly and the rolling, clouds and party are skipped.

API

PropTypeDefault
intensity

kawaii: 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"
value

Current progress.

number0
max

Value that counts as complete.

number100
sfx

Sticker shown at 100% in kawaii mode. false hides it.

string | false"やった!"
fx

Overrides for the burst fired at 100%.

BurstOptions-