InfinitiBit Design System

Progress Bar

A determinate progress indicator showing a percentage value from 0 to 100.

ProgressBar shows how far along a task is. It is stateless — the consumer controls the value. Fill width is driven by an inline style percentage; no animation engine required.

Installation

pnpm add @infinitibit_gmbh/ui @infinitibit_gmbh/theme-default

Usage

import '@infinitibit_gmbh/theme-default/theme.css';
import '@infinitibit_gmbh/ui/styles.css';

import { ProgressBar } from '@infinitibit_gmbh/ui';

export function Example() {
  return <ProgressBar value={60} />;
}

Values

value is clamped between 0 and max (default 100).

Label and value display

Pass label to show descriptive text, and showValue to display the percentage.

Uploading files30%
Processing70%
Complete100%

API

PropTypeDefaultDescription
valuenumberCurrent progress value (required)
maxnumber100Maximum value
labelstringVisible label shown above the track
showValuebooleanShow percentage (e.g. 60%) beside the label

All other <div> props are forwarded.

Accessibility

  • role="progressbar" with aria-valuenow, aria-valuemin, and aria-valuemax is set automatically.
  • Pass aria-label when no visible label is provided so screen readers announce the purpose.
  • Value is clamped before being set on aria-valuenow — no invalid ARIA values.

On this page