Skip to main content

steps

Function steps 

Source
pub fn steps(total: u8, current: u8) -> Widget
Expand description

A step indicator: total equal segments with the first current filled (current is clamped to total), spoken as “Step 2 of 3” in the root scaffold’s ShellLabels::step_of language: steps(3, 2). It speaks the step itself: to also show the text, use with_step_caption rather than a separate text, which screen readers would read a second time.