Dinachi

Progress

A progress bar that communicates task completion to users and assistive technology.

#Installation

npx @dinachi/cli@latest add progress

#Usage

tsx
import {
  Progress,
  ProgressTrack,
  ProgressIndicator,
  ProgressLabel,
  ProgressValue,
} from "@/components/ui/progress"

#Examples

Default Progress

A basic progress bar

Progress with Label

Progress bar with label and percentage value

Uploading...

Animated Progress

Progress bar with animated value changes

Loading0%

#API Reference

PropTypeDefaultDescription
valuenumberThe current progress value.
maxnumber100The maximum value that represents full completion.
getValueLabel(value: number, max: number) => stringOptional formatter for accessible progress value text.