Skip to content

Feedback

ProgressBar

Determinate progress indicator.

import { ProgressBar } from '@var-ui/react';
Uploading assets64%
Indexing28%

ProgressBar

Determinate progress indicator.

When to use which

  • ProgressBar shows how far an operation has got: an upload, an install, a multi-step task. It ends.
  • ProgressCircle is the same thing in a ring, for tight spaces, buttons and dashboards.
  • Meter shows a measurement inside a known range with no task in flight: disk usage, password strength, a score. Its tone says whether the value is good.
  • Spinner is for waits with no measurable progress.

Examples

Default

Uploading assets64%
Demo.tsxTSX
import { ProgressBar } from '@var-ui/react';

<ProgressBar label="Uploading assets" value={64} />

Sizes and bare bars

size (sm, md, lg) sets the track thickness, with the same steps as Meter. min and max default to 0 and 100. The formatted value shows beside a label; a bar without a label is just the track, so give it an aria-label:

TSX
<ProgressBar aria-label="Upload" value={40} size="sm" />

Props

Accessibility

Built on React Aria Components where applicable.