Progress Bar

An indicator showing the progress or completion of a task.

javascript
import { ProgressBar } from '@brainandbones/skeleton';

Usage

html
<ProgressBar label="Progress Bar" value={50} max={100} />

Indeterminate

The value property must be removed or set to undefined.

html
<ProgressBar />

Properties

Prop Type Default Description
labelstring-Set the label text.
valuenumber-Specifies the amount completed. Indeterminate when undefined.
maxnumber100Maximum amount the bar represents.
heightstringh-2Provide classes to set track height.
roundedstringrounded-fullProvide classes to set rounded styles.
meterstringbg-accent-500Provide arbitrary classes to style the meter element.
trackstringbg-surface-300 dark:bg-surface-700Provide arbitrary classes to style the track element.

Accessibility

This component is treated as a ARIA progressbar.