Progress

A themed Base UI progress primitive for uploads, generation, and long-running tasks.

Preview#

Uploading transcript
x
Controls
import { Progress, ProgressIndicator, ProgressTrack } from "raft-ui";

<Progress value={64}>
  <ProgressTrack>
    <ProgressIndicator />
  </ProgressTrack>
</Progress>

Variants#

primary
x
success
x
warning
x
danger
x

Sizes#

x
x
x

Indeterminate#

Use indeterminate progress when work has started but a reliable completion percentage is not available yet.

Generating response
x

Composition#

ProgressValue is optional. Omit it when a visible percentage would not help the reader; ProgressLabel still provides the accessible name.

Uploading transcript
x

Embedded progress#

Keep file-processing context in consumer UI and use the compact progress parts for status within that layout.

example-document.txtProcessing
Processing example-document.txt
x

API#WIP

PropTypeDefaultDescription
variant"primary" | "information" | "accent" | "success" | "warning" | "danger""primary"Semantic indicator color.
size"sm" | "md" | "lg""md"Track height. Brutal maps each size slightly taller than Elegant.
...propsBase UI Progress.Root.PropsAll native div attributes plus the remaining Base UI Progress.Root props (value, min, max, render, format, locale, aria-valuetext, ...).
PropTypeDefaultDescription
...propsComponentPropsWithRef<"div">Label and value row rendered above the track.
PropTypeDefaultDescription
...propsBase UI Progress.Label.PropsAccessible component label shown inside the header row.
PropTypeDefaultDescription
...propsBase UI Progress.Value.PropsFormatted current value shown inside the header row.
PropTypeDefaultDescription
...propsBase UI Progress.Track.PropsFull-width track behind the indicator.
PropTypeDefaultDescription
...propsBase UI Progress.Indicator.PropsFilled portion of the track.