progress_bar: Progress bar

View source: R/widget-display.R

progress_barR Documentation

Progress bar

Description

A bar filling as value goes from 0 to total, with a percentage. Set value = NA for an indeterminate (animated) bar.

Usage

progress_bar(
  value = 0,
  total = 1,
  show_percent = TRUE,
  id = NULL,
  classes = NULL,
  style = NULL
)

Arguments

value

Current progress, or NA.

total

Value that means complete.

show_percent

Show the percentage?

id

Optional identifier.

classes

Optional classes.

style

A style().

Value

A ProgressBar with a reactive value and method advance().

Examples

render_widget(progress_bar(0.42), 20, 1)

termr documentation built on Oct. 21, 2026, 5:13 p.m.