Components / StepBadge

StepBadge

The round mark of a step.

Example

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

Code

use ravenrs::prelude::*;

fn step_badge() -> impl View {
    HStack::new((
        StepBadge::new(1).state(StepState::Done),
        StepBadge::new(2).state(StepState::Error),
        StepBadge::new(3).state(StepState::Current),
        StepBadge::new(4),
    ))
    .spacing(8.0)
}

Open in the playground, with every example →

Full API of StepBadge →