184 Components

AI Generation Progress

Motion

Spring-animated SVG ring progress indicator for AI token generation. Shows determinate progress with a rolling token counter, or an indeterminate spin when total is unknown.

325/ 500
Paused

Installation

Install directly into your project using the shadcn CLI or copy the source code manually.

Requires:framer-motionclsxtailwind-merge
$npx shadcn@latest add "https://boseui.site/r/ai-generation-progress.json"

Props

TypeScript props supported by <AIGenerationProgress />.

6 props
PropTypeDefaultDescription
progressnumber0Progress 0–100. Ignored in indeterminate mode.
currentnumber—Current token count shown in ring center.
totalnumber—Total token count shown in ring center.
indeterminatebooleanfalseSpin indeterminately when total is unknown.
sizenumber96Ring diameter in pixels.
strokeWidthnumber5Ring stroke width in pixels.

Key Features

  • Spring-animated stroke-dashoffset for smooth arc fill on progress changes.
  • Indeterminate spinning arc when total token count is unknown.
  • Center displays current/total tokens or percentage.
  • Configurable size and stroke width.
  • Accessible with role=progressbar and aria attributes.

Keyboard & Accessibility

  • role='progressbar' with aria-valuenow, aria-valuemin, aria-valuemax.
  • aria-label for screen reader identification.