Components / StepIndicator

StepIndicator

Where a task in steps stands, for an app's own layout.

Example

The component itself, running in WebAssembly, beside its code in a playground. Try it.

Code

use ravenrs::prelude::*;

fn step_indicator() -> impl View {
    StepIndicator::new(vec![
        IndicatorStep::new("Client", StepState::Done),
        IndicatorStep::new("Photos", StepState::Error).note("Two are missing"),
        IndicatorStep::new("Review", StepState::Current),
        IndicatorStep::new("Send", StepState::Upcoming),
    ])
    .vertical()
    .on_select(|_step| {})
}

Open in the playground, with every example →

Full API of StepIndicator →