Fusuma

Components / Components

steps

Steps named labels, the current one marked (earlier ones are done).

Try it

This is the Components page of the gallery, running in your browser: steps is on it, and it is the real widget. Press Run, then use it.

Live: Components, where steps is usedOpen full size

Also on this pagealertbannersnackbarbreadcrumbsgaugetile

Steps named labels, the current one marked (earlier ones are done).

Signature

pub const fn steps<'a>(labels: &'a [&'a str], current: usize) -> Steps<'a>

Example

use fusuma::steps;
let view = steps(&["Account", "Address", "Payment"], 1);
let built = fusuma::doc::built::<(), _>(&view);
assert!(built.texts().contains(&"Address"));

All components · Source