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)
}