← Back to Components

Progress

Embedded, server-driven progress bar that renders inline instead of as a notification panel.

Interactive Playground

R Code

API Reference

block_progress()

Embedded, display-only progress bar that renders inline where placed (not as a Shiny notification panel) and is driven from the server.

ArgumentTypeDefaultDescription
idcharacterrequiredComponent id used to address the bar from the server. Not a form control: no input$<id> value.
valuenumeric0Current progress value, clamped into [min, max].
minnumeric0Lower bound. Must be finite and less than max.
maxnumeric1Upper bound. Must be finite and greater than min.
messagecharacterNULLDynamic status line; header-left, or a muted second line when label is also set.
detailcharacterNULLSecondary muted text below the track.
labelcharacterNULLStatic description of what is progressing; takes header-left when set.
show_valuelogicalFALSERender the clamped percent at header-right. Suppressed when indeterminate.
indeterminatelogicalFALSEShow an unknown-progress sweep instead of a determinate fill.
variant'default' | 'success' | 'warning' | 'info' | 'destructive''default'Indicator color.
widthcharacterNULLCSS width for the component (NULL fills the container); sizes the mount wrapper only.
classcharacterNULLAdditional classes applied to the inner progress body (.sb-progress-body), not the mount wrapper.
stylecharacter | listNULLInline styles applied to the inner progress body (.sb-progress-body); use width for wrapper sizing.

update_block_progress()

Set fields on a block_progress() from the server. Omitted args preserve the client value; NULL clears text fields; NULL on numeric fields errors.

ArgumentTypeDefaultDescription
sessionShinySessiongetDefaultReactiveDomain()The Shiny session.
idcharacterrequiredComponent id passed to block_progress().
value / min / maxnumeric—Replacement scale; clamped/reconciled client-side.
message / detail / labelcharacter—Replacement text; NULL clears.
show_value / indeterminatelogical—Replacement state flags.
variantcharacter—Replacement indicator color.
class / stylecharacter | list—Replacement classes/styles; NULL clears.

inc_block_progress()

Increment a block_progress() by a signed amount, saturating at the bounds. Reaching max is a stable no-op state.

ArgumentTypeDefaultDescription
sessionShinySessiongetDefaultReactiveDomain()The Shiny session.
idcharacterrequiredComponent id passed to block_progress().
amountnumeric0.1Signed amount added to the current value (may be negative).
message / detailcharacter—Optional text updates applied alongside the increment.