GitHub
Core
Glass
Brutal
Humanist

Progress Bar

Progress bars display the current progress of an operation. They provide visual feedback on completion percentage.

Progress Bar Label Playground

Progress Bar Label Playground
Preview
Code
65%
Syncing files...
Controls
Progress (65%)
Type:
Status
Plan Usage
Size:
Small
Default

Progress Bar Playground

Progress Bar Playground
Preview
Code
65%
Controls
Progress (65%)
Size:
Small
Default
Label:

Installation

You can add the progress bar component to your project manually:

1

Install the following dependencies:

npm install @react-aria/progress
2

Copy and paste the following code into your project.

Loading source code...
3

Update the import paths to match your project setup.

Update the import aliases (e.g. @/components, @/utils) in the copied files to match your project's path configuration.

Basic Usage

import { ProgressBar } from '@versaui/ui/components/ProgressBar';
// Basic progress bar
<ProgressBar value={50} />
// Small size
<ProgressBar size="small" value={30} />
// Full progress
<ProgressBar value={100} />

Accessibility

  • Uses role="progressbar" with aria-valuenow, aria-valuemin, aria-valuemax
  • Accessible label via aria-label prop
  • Visual percentage complements the semantic role

ProgressBar Props

PropTypeDefaultDescription
size'default' | 'small''default'Bar thickness variant.
valuenumber0Progress percentage (0–100).
showLabelbooleantrueShow percentage label.
aria-labelstring'Progress'Accessible label.
classNamestring''Additional CSS classes.

ProgressBarLabel Props

PropTypeDefaultDescription
type'status' | 'planUsage''status'Label layout type.
size'default' | 'small''default'Bar thickness variant.
valuenumber0Progress percentage (0–100).
titlestring'Seats'Label title text.
titleValuestring'5/20'Usage count text.
statusLeftstring'25% used'Left status text.
statusRightstring'15 remaining'Right status text.
statusTextstring'Uploading...'Status mode description.

On this page