Displays a progress bar related to a task.
This component inherits props from the Radix Progress primitive and supports common margin props m
, mx
, my
, ml
, mr
, mt
, mb
. View source
Use the duration
prop to indicate an approximate duration of an indeterminate task. Once the duration times out, the progress bar will start an indeterminate animation.
When an approximate duration can be estimated, the Progress component is still useful over Spinner, which doesn’t provide any visual cues towards the progress of the task.