pub fn progress(args: impl Into<ProgressArgs>)
Expand description
Draws a linear progress indicator that visualizes the completion of a task.
The progress
component consists of a track and a fill, where the fill
represents the current progress value.
§Arguments
value
: A float between0.0
and1.0
representing the current progress. Values outside this range will be clamped.
§Example
// Creates a progress bar that is 75% complete.
progress(
ProgressArgsBuilder::default()
.value(0.75)
.build()
.unwrap(),
);