Skip to content
SENVENLI UI

Progress

Shows how far a task has got, as a bar or a circle, determinate or indeterminate.
A known length
import { ProgressBar, ProgressCircle } from "@senvenli/react/feedback";

Examples

Unknown length

A segment sweeps across while the task runs.

Finished and failed

`success` and `danger` close the task, each with a word in the value.

Circle

ProgressCircle, for places with no width to spare.

Guidelines

When to use it

  • A task takes a while and its progress is known or ongoing.

Use something else when

  • Something short is loading. Spinner

Accessibility

Built in

  • Exposed as a progressbar with its value text.

You provide

  • A label that says what is in progress.

API reference

ProgressBar

labelRequired
React.ReactNode

What is in progress ("Importing contacts").

value
number
minValue
number
maxValue
number
valueLabel
React.ReactNode

Real units where they exist ("142 / 220", "3 / 5 steps"); defaults to the percentage.

isIndeterminate
boolean

A task of unknown length: a 30% segment sweeps across.

tone
ProgressTone

success / danger for a finished or failed task; pair it with a word in valueLabel.

size
"medium" | "large"

medium (4px, default); large (8px) for onboarding.

motion
ComponentMotion

auto (follow the device), reduce or none, for this component; the provider's setting otherwise.

ProgressCircle

value
numberDefault 0
minValue
numberDefault 0
maxValue
numberDefault 100
size
ProgressCircleSizeDefault "medium"

20px (no value text; give the value in adjacent text or a Tooltip), 48px, 80px.

label
React.ReactNode

A visible label under the ring, or aria-label when there is none.

aria-label
string
isIndeterminate
boolean
isMeasurement
boolean

A ratio that is a measurement (doluluk, kota), not progress: announced as a meter.

tone
ProgressToneDefault "brand"
valueLabel
string