Progress
How far a task has gone, with an optional label and value. The track is bordered in Iwa.
Uploading assets
Installation
Or with the shadcn CLI, from the registry:
Usage
Indeterminate
value={null} when the end can't be known yet.
Variants and tones
default draws the bar on a grey track; soft draws its track as a wash of the bar's own tone, for a quieter bar.
tone colours the bar: primary by default, success for a finished task, warning for a quota running out.
sm, default and lg set the track's height.
Default
Soft
Neutral
Primary
Success
Warning
Info
Destructive
Villages
The track is muted with --track-border, the indicator the nature's primary; its width animates with the village's motion.
Uploading assets
Uploading assets
Uploading assets
Uploading assets
Uploading assets
Uploading assets
Accessibility
- A
progressbarwitharia-valuenow, named byProgressLabel;ProgressValueshows the formatted value.
API reference
The parts of Base UI's Progress:
| Part | Notes |
|---|---|
Progress | value (null for indeterminate), min, max, format; variant ("default" | "soft"), tone ("neutral" | "primary" | "success" | "warning" | "info" | "destructive", default "primary") and size ("sm" | "default" | "lg"); draws the track and indicator after its children |
ProgressLabel | names the bar |
ProgressValue | the formatted value |
progressVariants({ variant, tone, size }) returns the root's classes.