Skip to content
SevenOne

Search documentation

Search pages and components

Progress

Shows how much of a task is done. The bar is 12px tall.

Installation

npx shadcn@latest add @sevenone/progress

Usage

import { Progress } from "@/components/ui/progress"

Examples

With a label

Uploading files13%
<div className="grid gap-2">
  <div className="flex items-center justify-between text-sm">
    <span id="upload-label">Uploading files</span>
    <span className="text-muted-foreground">{progress}%</span>
  </div>
  <Progress value={progress} aria-labelledby="upload-label" />
</div>

Values

<Progress value={33} aria-label="33% done" />

Accessibility

  • Name the bar with aria-label or aria-labelledby; screen readers read its value.
  • Show the percentage as text too, so the progress does not depend on the bar alone.