Skip to Content
MavKitOne is in beta. @mav-labs-inc/mavkit-react is not public packages yet.
ComponentsProgress Bar

Progress Bar

A linear progress indicator with an optional label, state icon, and caption. Grab a ref to call animateTo() for eased transitions beyond a plain value update.

Usage

import { ProgressBar } from '@mav-labs-inc/mavkit-react' <ProgressBar value={uploadPct} label="Uploading" /> <ProgressBar indeterminate label="Working…" />

Examples

Basic

Uploading0%
Working…0%

States

Backup0%
Storage0%
Approaching your plan limitWarning
Sync0%
Connection lostFailed

Props

PropTypeDefaultDescription
valuenumber0
state'info' | 'success' | 'error' | 'warning' | null—
stateLabelstring—Custom accessible label for the current state (defaults per state).
labelstring—
captionstring—
indeterminatebooleanfalse
classNamestring—
refRef<ProgressBarHandle>—{ setValue(v), getValue(), animateTo(target, duration?) } — animateTo eases with a cubic ease-out curve, default 800ms.
Last updated on