Fusuma

Components / Basics

progress

A progress bar.

Try it

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

Live: Progress, where progress is usedOpen full size

Also on this pagesegments

A progress bar.

permille is thousandths: 0 is empty and 1000 is full. .tall(px) makes the bar thicker.

Signature

pub const fn progress(permille: u16) -> Progress

Methods

  • .tall(px: u32) -> Self — px tall.

Example

use fusuma::{column, progress};
let view = column((progress(250), progress(1000).tall(12)));
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.nodes(), 3);

All components · Source