Progress Bar

<ProgressBar>TailwindCSS Modules

A determinate progress indicator that visualizes the completion status of a task or process.

InstallationColoxo CLI
npx coloxo add progress-bar --style coloxo-css
ES Module ImportPlayground / npm package
import { ProgressBar } from '@coloxo/ui';

Design Tokens:

--cx-brand-600: #2348FF--cx-bg-secondary: #F8FAFC--cx-radius-full: 9999pxheight: 8px

1. Variant Matrix

Progress bars can optionally display a descriptive label and a percentage value.

StandardWithout LabelWithout Percentage
Default
Profile completion72%
45%
Uploading...

2. Interactive Props Configurator

Show Label

Show Percentage

Visual Render Canvas
Upload progress62%
tsx
<ProgressBar  label="Upload"  value={62}/>

3. Dark theme

The progress track uses a subdued secondary background in dark mode, allowing the brand-colored fill to stand out.

Storage used85%

4. Enterprise layout compositions

Commonly used within cards or lists to indicate resource usage or onboarding progress.

Setup Guide

Complete these steps to activate your account.

Overall Progress40%

Accessibility

Native Semantics

The track element automatically applies `role="progressbar"` and maps `aria-valuenow`, `aria-valuemin`, and `aria-valuemax`.

Value Clamping

The internal width percentage is strictly clamped between 0 and 100%, preventing layout breakage on invalid inputs.

Props

NameTypeDefaultDescription
valuenumber—Current progress value.
maxnumber100Maximum value.
labelReactNode—Header label describing the task.
showValuebooleantrueShow percentage text.
size"sm" | "md" | "lg"mdThickness of the track.